dataSet

Variable Scope

Variable Scope

dataSet

dataSet Methods

writeToFile

dataSet.writeToFile( String fileName ) (professional and enterprise editions only)
Description
Writes the data contained by the set to a tab-delimited file.

get

dataSet.get( int dataRecordNumber, String identifier )
Description
Gets a single piece of data held by the data record designated by dataRecordNumber corresponding to identifier.

getNumDataRecords

dataSet.getNumDataRecords()
Description
Returns the number of data records held by this object.
Example
// Loop through each of the data records.

getDataRecord

dataSet.getDataRecord( int dataRecordNumber )
Description
Returns the data record (a Hashtable object) indicated by the given dataRecordNumber.

getAllDataRecords

dataSet.getAllDataRecords()
Description
Returns an ArrayList of DataRecord objects (which simply extends Hashtable).

deleteDataRecord

dataSet.deleteDataRecord
dataSet.deleteDataRecord( int dataRecordNumber )
De

scrape files with 2 / 3 parameters in url

Hi,
i have problems scraping files from with url containing 2/3 (two/three) different parameters :
url examples :

test.com/test.php?page=1&cat=hotels&country=IP.html
test.com/test.php?page=2&cat=hotels&country=HS.html
test.com/test.php?page=1&cat=hotels&country=DF.html

- one is the page number, and ok, i use the ~#PAGE#~ variable in loop script with scrape url like

test.com/test.php?page=~#PAGE#~&cat=hotels&country=DF.html with loop code

for( int i = 0; i < 32; i++ )
{session.setVariable( "PAGE", String.valueOf(i) );

How to manually extract data using the session.extractData method

How to manually extract data using the session.extractData method

This example makes use of the extractData() method.

Syndicate content