Show HN: Ruby gem to scrape a web page
github.com
github.com
When you're putting together a tool like this, it's nice to give the user some way to "escape" your framework and get to lower level underlying data.
Why not offer something like
page.selector('h2 p') #returns Nokogiri elements
page.h1 #calls method_missing, returns Nokogiri elements
page.p #ditto
page.noko #returns underlying Nokogiri doc
Also, you forgot to include the body accessor in the "Accessing inpsected data" portion of the doc.Thanks for sharing.
Would be easy enough to swap out if you prefer something else though - Faraday supports a good number of connectors.