runnableScrapingSession

Runnable Scraping Session

setVariable

void runnableScrapingSession.setVariable ( String identifier, Object value ) (professional and enterprise editions only)

Description

Set the value of a session variable.

getVariable

Object runnableScrapingSession.getVariable ( String variableName ) (professional and enterprise editions only)

Description

Retrieve the the value of a session variable. This method should be called after scrape method has returned.

getName

String runnableScrapingSession.getName ( ) (professional and enterprise editions only)

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:

setTimeout

void runnableScrapingSession.setTimeout ( int timeout ) (professional and enterprise editions only)

Description

Sets the timeout of the session. That is, after the given number of minutes have passed the session will automatically terminate.

setDoLazyScrape

void runnableScrapingSession.setDoLazyScrape ( boolean doLazyScrape ) (professional and enterprise editions only)

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

void runnableScrapingSession.scrape() (professional and enterprise editions only)

Description

Run the session scraping.

Parameters

This method does not receive any parameters.

Return Values

Returns void.

getTimeout

int runnableScrapingSession.getTimeout ( ) (professional and enterprise editions only)

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 ) (professional and enterprise editions only)
RunnableScrapingSession RunnableScrapingSession ( String name, ScrapingSession inheritedScrapingSession ) (professional and enterprise editions only)