session
Scraping Session
downloadFile
boolean session.downloadFile ( String url, String fileName ) (professional and enterprise editions only)
boolean session.downloadFile ( String url, String fileName, int maxNumAttempts ) (professional and enterprise editions only)
boolean session.downloadFile ( String url, String fileName, int maxNumAttempts ) (professional and enterprise editions only)
currentProxyServerIsBad
void session.currentProxyServerIsBad ( ) (professional and enterprise editions only)
Description
Remove proxy server from proxy pool. This is only used with anonymization and indicates that one server in the pool is bad and should be removed.
Parameters
This method does not receive any parameters.
Return Values
Returns void.
clearCookies
void session.clearCookies ( ) (enterprise edition only)
Description
Clear stored cookies.
Parameters
This method does not receive any parameters.
Return Values
Returns void.
breakpoint
void session.breakpoint ( ) (professional and enterprise editions only)
Description
Pause scrape and display breakpoint window. If the scrape is running in server mode, to avoid the break, logVariables will be called in place of breakpoint.
Parameters
This method does not receive any parameters.
Return Values
Returns void.
appendErrorMessage
void session.appendErrorMessage ( String errorMessage ) (enterprise edition only)
Description
Append an error message to any existing error messages.
Parameters
- errorMessage Error message that should be added, as a string.
Return Values
Returns void.
addToVariable
void session.addToVariable ( String variable, int value ) (professional and enterprise editions only)
Description
Add to the value of a session variable.