getRetainNonTidiedHTML
boolean scrapeableFile.getRetainNonTidiedHTML ( ) (enterprise edition only)
Description
Determine if the scrapeable file is set to retain non-tidied html.
Parameters
This method does not receive any parameters.
Return Values
Returns boolean flag for non-tidied contents being retained.
Change Log
Version | Description |
---|---|
4.5 | Available for enterprise edition. |
Examples
Write Untidied HTML to Log if Retained
// Outputs the non-tidied HTML from the scrapeable file
// to the log if it was retained otherwise just a message.
if (scrapeableFile.getRetainNonTidiedHTML())
{
session.log( "Non-tidied HTML: " + scrapeableFile.getNonTidiedHTML() );
}
else
{
session.log( "The non-tidied HTML was not retained or the file has not yet been scraped." );
}
// to the log if it was retained otherwise just a message.
if (scrapeableFile.getRetainNonTidiedHTML())
{
session.log( "Non-tidied HTML: " + scrapeableFile.getNonTidiedHTML() );
}
else
{
session.log( "The non-tidied HTML was not retained or the file has not yet been scraped." );
}
See Also
- getNonTidiedHTML() [scrapeableFile] - Retrieve the non-tidied HTML.
- setRetainNonTidiedHTML() [scrapeableFile] - Retain non-tidied HTML for a scrapeable file.
- getRetainNonTidiedHTML() [session] - Determine if non-tidied HTML is to be retained for all scrapeable files.
- setRetainNonTidiedHTML() [session] - Retain non-tidied HTML for all scrapeable files.
scraper on 07/16/2010 at 4:57 pm
- Printer-friendly version
- Login or register to post comments