Ask A Question

Notifications

You’re not receiving notifications from this thread.

Scraping Web Pages with Ruby Discussion

I haven't seen the next episodes yet but up until this point I'm wondering if a Scraper class is really a recommended way to do this? It seems like you are just replacing the Nokogiri API with your own API without a clear benefit. Are added layers of abstraction helpful later on? Maybe for testing? Or by reducing the API surface area maybe?

Reply

Keep watching. Nokogiri is just an HTML parser, but you need to write code to interact with it, which is why we create the Scraper class.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,464+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.