2

我正在尝试创建一个简单的网络抓取工具,它执行以下操作:

  1. 访问 Yellowpages.com
  2. 选择它尚未抓取的第一个类别
  3. 点击尚未抓取的第一个业务
  4. 抓取业务的标题、电话号码和描述
  5. 将它抓取的数据附加到 .csv 文件(或数据库)中
  6. 回到步骤 1

我认为 Node.js / jQuery 将是最容易实现这样的事情。任何人都可以为我指出一个教程或快速为我整理一些东西吗?

4

1 回答 1

4

Just read an article on Hacker News yesterday about scraping with NodeJS and Chimera. The same author wrote an earlier article on Enhanced web scraping with NodeJS.

The Chimera one looks cool, because it uses a headless web browser (QtWebkit), so you get the pages to load anything they load with JS, which I need for a scraper I'm building at work.

于 2013-01-03T15:59:18.513 回答