For work I need to extract data from websites and write this data in in a CSV file, at this stage I'm using Selenium and Perl (and this very powerful couple) but yesterday I thinked to this solution:
Selenium IDE ---via JS--->Web app on Node.js Webserver------> CSV
Do you think is it possible? Or there is another "elegant" solutions?
The idea is general, so I can use for data storage, but the testers can use this for improving their tests using the stored variables, so it's for general purpose.
For purpose of scraping you can use jsdom
module like shown here
http://blog.nodejitsu.com/jsdom-jquery-in-5-lines-on-nodejs
for purpose of generating CSV this module is nice
https://github.com/koles/ya-csv
But there are easier ways to do it like using Mechanize in Perl, Ruby, Python