I'm trying to parse images from reddit using Ruby and the Hpricot gem.
Using Chrome I got the XPath to the div holding the link to the image then I use doc.search to find it but the results come up empty.
doc.search('//*[@id="siteTable"]/div[1]/a').each do |r|
puts r.attributes['href']
end
Any ideas?