scrapeableFile

Scrapeable File

getCurrentURL

String scrapeableFile.getCurrentURL ( )

Description

Get the URL of the file.

Parameters

This method does not receive any parameters.

Return Values

Returns the URL of the scrapeable file, as a string. If called after the file has been scraped the session variable tokens will be resolved to their values; otherwise, the tokens will simply be removed from the string.

getCurrentPOSTData

String scrapeableFile.getCurrentPOSTData ( )

Description

Retrieve the POST data.

Parameters

This method does not receive any parameters.

Return Values

Returns the POST data for the scrapeable file, as a string. If called after the file has been scraped the session variable token will be resolved to their values; otherwise, the tokens will simply be removed from the string.

getContentAsString

String scrapeableFile.getContentAsString ( )

Description

Retrieve contents of the response.

Parameters

This method does not receive any parameters.

Return Values

Returns contents of the last response, as a string. If the file has not been scraped it will return an empty string.

extractOneValue

String scrapeableFile.extractOneValue ( String text, String extractorPatternName ) (professional and enterprise editions only)
String scrapeableFile.extractOneValue ( String text, String extractorPatternName, String extractorTokenName ) (professional and enterprise editions only)

extractData

DataSet scrapeableFile.extractData ( String text, String extractorPatternName ) (professional and enterprise editions only)

Description

Manually apply an extractor pattern to a string.

removeHTTPParameter

void scrapeableFile.removeHTTPParameter ( int sequence )
void scrapeableFile.removeHTTPParameter ( String key ) (professional and enterprise editions only)

Description

Dynamically removes an HTTPParameter. The order of the remaining parameters are adjusted immediately.

addHTTPParameter

void scrapeableFile.addHTTPParameter ( HTTPParameter parameter )

Description

Dynamically add an HTTPParameter to the current scrapeable file.

Parameters

  • parameter HTTPParameter object.

Return Values

Returns void.