NodeJS Web Scraping - Form Submittion [closed]

╄→гoц情女王★ 提交于 2019-12-10 00:40:31

问题


I'm trying to use X-Ray to do the following, i'm not famliar with web scarping, and i'm looking for a technolegy to fit my use.

Browse to a page, allocate a specific form in it, set some vars, and submit it. Then get the other page, and so on...

What's the best NodeJS based solution with examples and documents to get this done?

Thanks.


回答1:


There are many Node modules created for web scraping.

Some of them are:

  • cheerio
  • osmosis
  • x-ray
  • noodlejs
  • yakuza
  • ineed

See Node.js Scraping Libraries - a very nice comparison by Moritz Klack on Webkid Blog.

There are some nice articles online on how to use some of them, mostly about Cheerio:

  • Web Scraping With Node.js by Elliot Bonneville (Smashing Magazine) about Cheerio
  • Scraping the Web With Node.js by Adnan Kukic (Scotch.io) about Cheerio
  • Easy Web Scraping With Node.js by Miguel Grinberg about Cheerio
  • Simple web scraping with Node.js / JavaScript by Stephen ('Net Instructions) about Cheerio

It's worth mentioning that the x-ray module was written by the author of Cheerio - see: X-Ray: A Scraper by the Author of Cheerio on DailyJS.



来源:https://stackoverflow.com/questions/37444122/nodejs-web-scraping-form-submittion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!