Nokogiri comes with a command-line tool for just that purpose: https://github.com/sparklemotion/nokogiri/blob/master/bin/no...
Example: nokogiri https://news.ycombinator.com -e 'puts $_.css("td.title a @href")'
Example: nokogiri https://news.ycombinator.com -e 'puts $_.css("td.title a @href")'
No comments yet.