From: Hassan Schroeder Date: 2010-12-11T10:35:20+09:00 Subject: Re: Help with net/http On Fri, Dec 10, 2010 at 4:38 PM, A. Mcbomb wrote: > page = Nokogiri::HTML res.body > page.xpath("//tr//td/a").each do |node| >  puts node.text > end > ----------------- > This returns some of the data that I need but not all of it. > I do not understand this line: > >   page.xpath("//tr/td") That's not what you're using. > I know it is supposed to be the path to the data I need but I'm not sure > how I can get to all the data I need from the URL, it seems like some of > the data is between tags that I can't figure out. If you *did* use `//tr/td` you *would* get all the information in the table, only some of which is within anchor (a) tags. -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com twitter: @hassan