public setRequestLimit($limit, $only_count_received_documents = false)
$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. |
bool |
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.