0

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.

4

1 回答 1

1

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

于 2012-04-17T08:05:40.507 回答