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

スクレイピングの目的で、jsdomここに示すようなモジュールを使用できます

http://blog.nodejitsu.com/jsdom-jquery-in-5-lines-on-nodejs

CSV を生成する目的で、このモジュールは便利です

https://github.com/koles/ya-csv

しかし、Perl、Ruby、Python で Mechanize を使用するなど、より簡単な方法があります。

于 2012-04-17T08:05:40.507 に答える