scrapeableFile

addHTTPHeader

scrapeableFile.addHTTPHeader( String contentType ) (enterprise edition only)
Description
In certain rare cases it may be necessary to explicitly add a custom header to the POST data of an HTTP request.

getName

scrapeableFile.getName()
Description
Gets the name of the current scrapeable file.
Example

setRetainNonTidiedHTML

scrapeableFile.setRetainNonTidiedHTML( boolean retainNonTidiedHTML ) (enterprise edition only)
Description
scrapeableFile.getRetainNonTidiedHTML() (enterprise edition only)
Description
scrapeableFile Methods

setUserAgent

scrapeableFile.setUserAgent( String userAgent ) (professional and enterprise editions only)
Description
In certain rare cases it may be desirable to explicitly set the "User-Agent" header screen-scraper will send for a given HTTP request.

setRequestEntity

scrapeableFile.setRequestEntity( String requestEntity ) (professional and enterprise editions only)
Description
Sets the complete value that will be sent in the POST payload portion of the request.

setReferer

scrapeableFile.setReferer( String url ) (professional and enterprise editions only)
Description
Dynamically sets the HTTP header referer for the current scrapeable file.

setContentType

scrapeableFile.setContentType( String contentType ) (professional and enterprise editions only)
Description
In certain rare cases it may be necessary to explicitly set the content type of the POST data of an HTTP request.

saveFileBeforeTidying

scrapeableFile.saveFileBeforeTidying( String filePath ) (professional and enterprise editions only)
Description
Calling this method will cause screen-scraper to output to filePath the original HTML sent from the web server before it was tidied by s

Syndicate content