Method: PHPCrawler::setRequestLimit()



Sets a limit to the total number of requests the crawler should execute.
Signature:

public setRequestLimit($limit, $only_count_received_documents = false)

Parameters:

$limit int The limit, set to 0 for no limit (default value).
$only_count_received_documents bool OPTIONAL.
If TRUE, the given limit refers to the total number of successfully received documents.
If FALSE, the given limit refers to the total number of requests done, regardless of the number of successfully received documents.
Defaults to FALSE.

Returns:

bool 

Description:

If the given limit is reached, the crawler stops the crawling-process. The default-value is 0 (no limit).

If the second parameter is set to true, the given limit refers to to total number of successfully received documents
instead of the number of requests.