From: Aaron Patterson Date: 2007-06-14T11:32:41+09:00 Subject: Re: more mechanize On Thu, Jun 14, 2007 at 09:59:53AM +0900, Colin Summers wrote: > Okay, I managed to get mechanize to login for me. Now I am pulling > down a vBulletin page which has a thread on it: > > # pull down a thread > puts "Thread:\n" > page = > agent.get('http://dapo.org/forums/archive/index.php?t-2293.html?pda=1') > pp page > > but all I get is: > Thread: > # {url > # URL:http://dapo.org/forums/archive/index.php?t-2293.html>} > {meta} > {title > "Alternator failure For Real This Time [Archive] - Diamond Aircraft > Pilots/Owners Organization"} > {iframes} > {frames} > {links > # "Diamond Aircraft Pilots/Owners Organization" > "index.php"> > # > # > # > # "Alternator failure For Real This Time" > "http://www.dapo.org/forums/showthread.php?t=2293">} > {forms}> > > > > It's cool that I have a data structure for the links, but, um, where's > the text of the page? That's the stuff I *want*. Try this: puts page.body Hope that helps! Also, make sure to add yourself to the mechanize mailing list. You will probably get more prompt responses. :-) http://rubyforge.org/mailman/listinfo/mechanize-users -- Aaron Patterson http://tenderlovemaking.com/