Session Variables

Hi all-

I am new to screen scraper and I am having a problem. I have a scrape session setup to capture some scan information off our internal website here. It scrapes a field called CONS. I then have another scrape session setup to scrape off a different website using the CONS number that I scraped off the first website. Can this field be stored in a session variable and used later for a different scrape session?

Thanks

Jason

using data from one scrape as input to another

Hi Jason,

Yes, it is possible to pass info from one scrape into another. The two methods that come to mind first are 1. writing to a flat file and 2. using the

runnableScrapingSession.setVariable( String identifier, Object value )

method. Note: This method is only available to Professional and Enterprise versions.

If you wanted to write the data you have scraped to a flat file, you could then read the information into the next scrape as it begins. This could be accomplished by csv and the following example scripts:

output to csv
input from csv

Otherwise, I'd suggest using the Runnable Scraping Session methods which allow you to create an instance of a scraping session and then pass it session variables before it begins. Information about these methods is found here:

here