# More mechanize

**URL:** <https://www.ruby-forum.com/t/more-mechanize/106784>\
**Category:** Ruby\
**Created:** [June 14, 2007, 3:01am UTC](https://www.ruby-forum.com/t/more-mechanize/106784 "2007-06-14T03:01:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![banry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/898d66/32.png) [@banry](https://www.ruby-forum.com/u/banry)\
**Post date:** [June 14, 2007, 3:01am UTC](https://www.ruby-forum.com/t/more-mechanize/106784/1 "2007-06-14T03:01:06Z")

</div>

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](http://dapo.org/forums/archive/index.php?t-2293.html?pda=1)’)  
pp page

but all I get is:  
Thread:  
#\<WWW::Mechanize::Page  
{url  
#\<URI::HTTP:0x333ef2  
URL:[http://dapo.org/forums/archive/index.php?t-2293.html](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  
#\<WWW::Mechanize::Link  
“Diamond Aircraft Pilots/Owners Organization”  
“index.php”\>  
#\<WWW::Mechanize::Link “General” “index.php?f-1.html”\>  
#\<WWW::Mechanize::Link “Discussions” “index.php?f-4.html”\>  
#\<WWW::Mechanize::Link “PDA” “index.php?pda=1”\>  
#\<WWW::Mechanize::Link  
“Alternator failure For Real This Time”  
“[http://www.dapo.org/forums/showthread.php?t=2293](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_.

Thanks.

–Colin

---

<div class="post-metadata">

**Author:** ![banry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/898d66/32.png) [@banry](https://www.ruby-forum.com/u/banry)\
**Post date:** [June 14, 2007, 4:33am UTC](https://www.ruby-forum.com/t/more-mechanize/106784/2 "2007-06-14T04:33:18Z")

</div>

On Thu, Jun 14, 2007 at 09:59:53AM +0900, Colin S. wrote:

> Thread:  
> {links
> 
> 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](http://rubyforge.org/mailman/listinfo/mechanize-users)
