runnableScrapingSession
setVariable
Description
Set the value of a session variable.
getVariable
Description
Retrieve the the value of a session variable. This method should be called after scrape method has returned.
getName
Description
Retrieve the name of the scraping session in the runnableScrapingSession.
Parameters
This method does not receive any parameters.
Return Values
Returns a string with the name of the scraping session.
RunnableScrapingSession
Overview
This is a class that can be instantiated within a script in order to run a scraping session.
Also see:
- Using RunnableScrapingSesssion Class example scraping sessions
- running scraping sessions within scraping sessions documentation
setTimeout
Description
Sets the timeout of the session. That is, after the given number of minutes have passed the session will automatically terminate.
setDoLazyScrape
Description
Indicate whether or not the scraping session should run concurrently with (at the same time as) other scraping sessions. The default for doLazyScrape is true.
scrape
Description
Run the session scraping.
Parameters
This method does not receive any parameters.
Return Values
Returns void.
getTimeout
Description
Get the timeout of the session in the runnableScrapingSession.
Parameters
This method does not receive any parameters.
Return Values
Returns a integer representing the timeout length in minutes.
RunnableScrapingSession
RunnableScrapingSession RunnableScrapingSession ( String name, ScrapingSession inheritedScrapingSession ) (professional and enterprise editions only)