Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
require'nokogiri'
require'open-uri'
body = open("https://www.amazon.co.jp/gp/bestsellers/digital-text/2293143051", &:read)
doc = Nokogiri::HTML(body)
doc.xpath("//div[@class='zg_itemRow']")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment