getRetainNonTidiedHTML
boolean session.getRetainNonTidiedHTML ( ) (enterprise edition only)
Description
Determine whether or not non-tidied HTML is to be retained for all scrapeable files in this scraping session.
Parameters
This method does not receive any parameters.
Return Values
Returns whether non-tidied HTML is be retained for all scrapeable files or not, as a boolean.
Change Log
Version | Description |
---|---|
4.5 | Available for enterprise edition. |
Examples
Determine if Non-tidied HTML is Being Retained
// Outputs the non-tidied HTML from the scrapeable file
// to the log if it was retained otherwise just a message.
if (session.getRetainNonTidiedHTML())
{
session.log( "All scrapeable files will retain non-tidied HTML" );
}
else
{
session.log( "Non-tidied HTML will not be not retained." );
}
// to the log if it was retained otherwise just a message.
if (session.getRetainNonTidiedHTML())
{
session.log( "All scrapeable files will retain non-tidied HTML" );
}
else
{
session.log( "Non-tidied HTML will not be not retained." );
}
See Also
- setRetainNonTidiedHTML() [session] - Retain non-tidied HTML for all scrapeable files.
- getNonTidiedHTML() [scrapeableFile] - Retrieve the non-tidied HTML.
- setRetainNonTidiedHTML() [scrapeableFile] - Retain non-tidied HTML for a scrapeable file.
- getRetainNonTidiedHTML() [scrapeableFile] - Determine if non-tidied HTML is being retained by the scrapeable file.
scraper on 07/16/2010 at 4:54 pm
- Printer-friendly version
- Login or register to post comments