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.

Change Log

Version Description
4.5 Available for professional and enterprise editions.

The default is for the script to continue executing without waiting for the scraping session to finish. You can use setDoLazyScrape to force the script to wait until the scape finishes before continuing the script.

Examples

Start Scrape in Separate Thread

 runnableScrapingSession = new com.screenscraper.scraper.RunnableScrapingSession( "My Session" );

 // Tells the session to start scraping.
 runnableScrapingSession.scrape();

 // Script continues execution without waiting for end of scrape

Start Scrape in Same Thread

 runnableScrapingSession = new com.screenscraper.scraper.RunnableScrapingSession( "My Session" );

 // Turn off LazyScrape
 runnableScrapingSession.setDoLazyScrape( false );

 // Tells the session to start scraping.
 runnableScrapingSession.scrape();

 // Script halts execution until the scrape is finished