Skip to content

Instantly share code, notes, and snippets.

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']")