Any one have a CsvWriter "For Dummies" usage explanation?
Try this and see if it helps:
http://www.screen-scraper.com/alpha_docs/csvwriter.html
Thanks for the reply Jason... will take a stab at it asap.
JASON,
Read it and thought I understood. I keep getting this similar error regardless of the different CsvWriter scripts I find. Using Ver5 Basic
An error occurred while processing the script: 1CSV The error message was: NoClassDefFoundError (line 6): au/com/bytecode/opencsv/CSVWriter-- Typed variable declaration : Object constructor
HERE IS THE INIT SCRIPT I'm using...
try {
//scraping session init script String[] header = {"Cat_State", "Cat_City", "Title", "Services Offered", "Address", "City", "ZipCode", "Phone" }; CsvWriter writer = new CsvWriter("payday.csv"); writer.setHeader(header);
session.setVariable("WRITER", writer);
session.scrapeFile ( "CITYPAYDAY" );
} catch( Exception e ) { session.log( "An error occurred while writing the data to a file: " + e.getMessage() ); }
I'm pretty sure that Basic doesn't have this CSV writer. You will likely need a script like the 'Write CSV' in our samples.
http://community.screen-scraper.com/script_repository
Try this and see if it
Try this and see if it helps:
http://www.screen-scraper.com/alpha_docs/csvwriter.html
Thanks
Thanks for the reply Jason...
will take a stab at it asap.
ERROR...
JASON,
Read it and thought I understood. I keep getting this similar error regardless of the different CsvWriter scripts I find. Using Ver5 Basic
An error occurred while processing the script: 1CSV
The error message was: NoClassDefFoundError (line 6): au/com/bytecode/opencsv/CSVWriter-- Typed variable declaration : Object constructor
HERE IS THE INIT SCRIPT I'm using...
try
{
//scraping session init script
String[] header = {"Cat_State", "Cat_City", "Title", "Services Offered", "Address", "City", "ZipCode", "Phone" };
CsvWriter writer = new CsvWriter("payday.csv");
writer.setHeader(header);
session.setVariable("WRITER", writer);
session.scrapeFile ( "CITYPAYDAY" );
}
catch( Exception e )
{
session.log( "An error occurred while writing the data to a file: " + e.getMessage() );
}
I'm pretty sure that Basic
I'm pretty sure that Basic doesn't have this CSV writer. You will likely need a script like the 'Write CSV' in our samples.
http://community.screen-scraper.com/script_repository