3 ms·
Much like apples to oranges. Nokogiri is a tag soup parser. Scrapy is a web scraping framework. In addition to tag soup parsing, Scrapy handles a slew of thin
by ddebernardy 11y ago
Much like apples to oranges.
Nokogiri is a tag soup parser. Scrapy is a web scraping framework.
In addition to tag soup parsing, Scrapy handles a slew of things such as text encoding problems, retrying urls that fail owing to network problems (if you wish), dispatching requests across multiple spiders with a shared crawl frontier (see Frontera), shared code between similar spiders using middlewares and pipelines, and what have you.
There's a Lisp joke that goes something like every sufficiently complex piece of software in C is a slow, buggy, poorly implemented version of Lisp. Very much the same could be said about Scrapy and web scraping projects. :-)
- shostack 11y agoMakes sense, thanks for the clarification. To your knowledge, is there anything comparable to Scrapy in Ruby land?
- ddebernardy 11y agoNot that we're aware of. Most rubyists use request and a tag soup parser, without benefiting from any type of parallelization that you get from Scrapy.