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?
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.