setStopScrapingOnMaxRequestAttemptsReached
void session.setStopScrapingOnMaxRequestAttemptsReached ( boolean stopScrapingOnMaxRequestAttemptsReached ) (professional and enterprise editions only)
Description
If this method is passed the value of true, it will cause screen-scraper to stop the current scraping session if the maximum attempts to request a file is reached.
Parameters
- stopScrapingOnMaxRequestAttemptsReached true or false
Return Values
None
Change Log
Version | Description |
---|---|
5.5.36a | Available in Professional and Enterprise editions. |
Examples
Indicate that the scraping session should be stopped if the maximum attempts to request a file is reached
session.setStopScrapingOnMaxRequestAttemptsReached( true );
// You can also access the current value like so:
session.log( "Stop scraping on max attempts reached: " + session.getStopScrapingOnMaxRequestAttemptsReached() );
// You can also access the current value like so:
session.log( "Stop scraping on max attempts reached: " + session.getStopScrapingOnMaxRequestAttemptsReached() );
todd on 03/08/2012 at 1:12 pm
- Printer-friendly version
- Login or register to post comments