मयंक जैन (makuchaku)
2007-Sep-14 05:31 UTC
[Mechanize-users] Unable to scrap gmail.com - EOFError: End of file reached
Hi all, I am so excited to use mechanize! It has opened a whole new world of projects for me :) I am trying to login into the Gmail.com server, as described in http://schf.uc.org/articles/2007/02/14/scraping-gmail-with-mechanize-and-hpricot but am running into a few issues... irb(main):010:0> page = agent.submit form EOFError: end of file reached from /usr/lib/ruby/1.8/net/protocol.rb:133:in `sysread'' from /usr/lib/ruby/1.8/net/protocol.rb:133:in `rbuf_fill'' from /usr/lib/ruby/1.8/timeout.rb:56:in `timeout'' from /usr/lib/ruby/1.8/timeout.rb:76:in `timeout'' from /usr/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill'' from /usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'' from /usr/lib/ruby/1.8/net/protocol.rb:126:in `readline'' from /usr/lib/ruby/1.8/net/http.rb:2017:in `read_status_line'' from /usr/lib/ruby/1.8/net/http.rb:2006:in `read_new'' from /usr/lib/ruby/1.8/net/http.rb:1047:in `request'' from /var/lib/gems/1.8/gems/mechanize-0.6.10/lib/mechanize.rb:514:in `fetch_page'' from /var/lib/gems/1.8/gems/mechanize-0.6.10/lib/mechanize.rb:428:in `post_form'' from /var/lib/gems/1.8/gems/mechanize-0.6.10/lib/mechanize.rb:247:in `submit'' from (irb):10 from :0 irb(main):011:0> When I do a submit on the form, I get this huge backtrace. It would be great if anyone can help me out with this problem - some pointers on what I am doing wrong - would be great. I would surely find a solution :) I have the following installed on my Ubuntu box Ruby - 1.8.5 hpricot - 0.6 mechanize - 0.6.10 libopenssl-ruby 1.0.0 httpclient 2.1.1 Thanks in advance for the help :) Regards, Maku http://www.makuchaku.info/blog
मयंक जैन (makuchaku)
2007-Sep-15 08:12 UTC
[Mechanize-users] Unable to scrap gmail.com - EOFError: End of file reached
On 9/14/07, ???? ??? (makuchaku) <maku at makuchaku.info> wrote:> Hi all, > > I am so excited to use mechanize! It has opened a whole new world of > projects for me :) > > I am trying to login into the Gmail.com server, as described in > http://schf.uc.org/articles/2007/02/14/scraping-gmail-with-mechanize-and-hpricot > but am running into a few issues... > > irb(main):010:0> page = agent.submit form > EOFError: end of file reachedLots of googling revealed that its a known filed bug. http://rubyforge.org/tracker/index.php?func=detail&aid=13319&group_id=1453&atid=5709 The bug report also suggests a solution - which rocks! Thanks ''orangechicken'' :-) -- Maku http://www.makuchaku.info/blog