Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Ruby と Hpricot gem を使用して、reddit から画像を解析しようとしています。
Chromeを使用して、画像へのリンクを保持するdivへのXPathを取得し、doc.searchを使用してそれを見つけましたが、結果は空になりました。
doc.search('//*[@id="siteTable"]/div[1]/a').each do |r| puts r.attributes['href'] end
何か案は?