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
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() );