From barjunk at attglobal.net Mon Dec 7 17:03:04 2009 From: barjunk at attglobal.net (barsalou) Date: Mon, 07 Dec 2009 13:03:04 -0900 Subject: [Mechanize-users] Download ATT cell phone bill Message-ID: <20091207130304.2q3vnoodoogcscsw@lcgalaska.com> Has anyone attempted to download their cell phone bill from AT&T? I can get past the initial login page, but then it stops after that. When doing it using the browser, there is a page that displays some graphic and then it moves forward. My guess is that there is some sort of background operation going on, but I can't figure it out at the moment. Thanks for any ideas. Mike B. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From jeremywoertink at gmail.com Mon Dec 7 23:31:49 2009 From: jeremywoertink at gmail.com (jeremywoertink at gmail.com) Date: Mon, 7 Dec 2009 20:31:49 -0800 Subject: [Mechanize-users] Download ATT cell phone bill In-Reply-To: <20091207130304.2q3vnoodoogcscsw@lcgalaska.com> References: <20091207130304.2q3vnoodoogcscsw@lcgalaska.com> Message-ID: <4C8547FD-50F4-47BA-BE04-F9BFAD3E11A1@gmail.com> Did you try setting your browser to follow meta-rediredcts? On Dec 7, 2009, at 2:03 PM, barsalou wrote: > Has anyone attempted to download their cell phone bill from AT&T? I > can get past the initial login page, but then it stops after that. > > When doing it using the browser, there is a page that displays some > graphic and then it moves forward. > > My guess is that there is some sort of background operation going > on, but I can't figure it out at the moment. > > Thanks for any ideas. > > Mike B. > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users From barjunk at attglobal.net Tue Dec 8 00:32:50 2009 From: barjunk at attglobal.net (barsalou) Date: Mon, 07 Dec 2009 20:32:50 -0900 Subject: [Mechanize-users] Download ATT cell phone bill In-Reply-To: <4C8547FD-50F4-47BA-BE04-F9BFAD3E11A1@gmail.com> References: <20091207130304.2q3vnoodoogcscsw@lcgalaska.com> <4C8547FD-50F4-47BA-BE04-F9BFAD3E11A1@gmail.com> Message-ID: <20091207203250.wu6ixjky80wo0gws@lcgalaska.com> Quoting jeremywoertink at gmail.com: > Did you try setting your browser to follow meta-rediredcts? > I've never heard of that...how would I do it? Mike B. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From barjunk at attglobal.net Tue Dec 8 01:05:30 2009 From: barjunk at attglobal.net (barsalou) Date: Mon, 07 Dec 2009 21:05:30 -0900 Subject: [Mechanize-users] Download ATT cell phone bill In-Reply-To: <4C8547FD-50F4-47BA-BE04-F9BFAD3E11A1@gmail.com> References: <20091207130304.2q3vnoodoogcscsw@lcgalaska.com> <4C8547FD-50F4-47BA-BE04-F9BFAD3E11A1@gmail.com> Message-ID: <20091207210530.cym8sdg6hcc4c8o0@lcgalaska.com> Quoting jeremywoertink at gmail.com: > Did you try setting your browser to follow meta-rediredcts? > Nevermind, I found a similar conversation between you and Aaron Patterson: http://www.ruby-forum.com/topic/161913 Aaron still rocks! :) Thanks for the hint Jeremy, I'm logged in at least...now I got to locate the bill and start scraping it. Mike B. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From jeremywoertink at gmail.com Tue Dec 8 12:31:53 2009 From: jeremywoertink at gmail.com (Jeremy Woertink) Date: Tue, 8 Dec 2009 09:31:53 -0800 Subject: [Mechanize-users] Download ATT cell phone bill In-Reply-To: <20091207210530.cym8sdg6hcc4c8o0@lcgalaska.com> References: <20091207130304.2q3vnoodoogcscsw@lcgalaska.com> <4C8547FD-50F4-47BA-BE04-F9BFAD3E11A1@gmail.com> <20091207210530.cym8sdg6hcc4c8o0@lcgalaska.com> Message-ID: <1ea5c3820912080931k3b0cb882q7d90b48ed90bce10@mail.gmail.com> you're welcome. Yes, Aaron is very helpful. Let me know if you run into any other issues :) On Mon, Dec 7, 2009 at 10:05 PM, barsalou wrote: > Quoting jeremywoertink at gmail.com: > > Did you try setting your browser to follow meta-rediredcts? >> >> > Nevermind, > > I found a similar conversation between you and Aaron Patterson: > > http://www.ruby-forum.com/topic/161913 > > Aaron still rocks! :) > > Thanks for the hint Jeremy, I'm logged in at least...now I got to locate > the bill and start scraping it. > > > Mike B. > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ross at roscommonhq.com Tue Dec 15 01:09:08 2009 From: ross at roscommonhq.com (Ross Cameron) Date: Tue, 15 Dec 2009 17:09:08 +1100 Subject: [Mechanize-users] Missing form in the # Trying to use BabelFish (http://babelfish.yahoo.com/) to do a translation of text via Mechanize. Their are a couple of forms on it, the form in question being "frmTrText". It all looked pretty straight forward to me, but then again, sometimes ... Anyway, examining page.body, the form is there, as are the other forms, but it doesn't appear in the # nil Would appreciate any thoughts on what could be the issue or some direction to resolving the problem. Regards Ross -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeremywoertink at gmail.com Tue Dec 15 03:12:40 2009 From: jeremywoertink at gmail.com (jeremywoertink at gmail.com) Date: Tue, 15 Dec 2009 00:12:40 -0800 Subject: [Mechanize-users] Missing form in the # References: <4B272804.7080303@roscommonhq.com> Message-ID: A couple questions... 1. What version of mechanize are you using? 2. Is the form generated by javascript? 3. Have you tried other methods like page.forms.length To see how many come up? If that comes up as 0, Then examine then page object. Hope that helps ~jeremy woertink On Dec 14, 2009, at 10:09 PM, Ross Cameron wrote: > Trying to use BabelFish (http://babelfish.yahoo.com/) to do a > translation of text via Mechanize. > > Their are a couple of forms on it, the form in question being > "frmTrText". > > It all looked pretty straight forward to me, but then again, > sometimes ... > > Anyway, examining page.body, the form is there, as are the other > forms, but it doesn't appear in the # > Code I am using is: > agent = WWW::Mechanize.new > page = agent.get(http://babelfish.yahoo.com/translate_txt) > sf = page.form('frmTrText') > > pp sf > > => nil > > Would appreciate any thoughts on what could be the issue or some > direction to resolving the problem. > > Regards > Ross > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ross at roscommonhq.com Tue Dec 15 04:39:57 2009 From: ross at roscommonhq.com (Ross Cameron) Date: Tue, 15 Dec 2009 20:39:57 +1100 Subject: [Mechanize-users] Missing form in the # References: <4B272804.7080303@roscommonhq.com> Message-ID: <4B27596D.50704@roscommonhq.com> All good questions. Thanks. Mechanize version 0.9.3 Hpricot version 0.8.2 No, javascript isn't involved, it is a static page. paged.forms.length = 2 when in fact there are 3 on the page which also show in page.body. So I have tried it with nokogiri (1.4.0) and it works. Looks like an Hpricot issue. Many thanks for getting me thinking. Ross ------------------------------------------------------------------------ Ross Cameron | Director Roscommon Pty Ltd | ABN 85 099 499 840 p: +61 2 9016 4133 | m: +61 4 3312 9087 | f: +61 2 9420 4525 | w: www.roscommonhq.com | AIM: rossppc Roscommon uses the five sentences email reply policy. Please consider our environment before printing this email. NOTE: This email and any attachments may be confidential. If received in error, please delete the email. Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems, you must be cautious. Roscommon cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email from Roscommon, please contact us immediately. jeremywoertink at gmail.com wrote: > A couple questions... > > 1. What version of mechanize are you using? > 2. Is the form generated by javascript? > 3. Have you tried other methods like > > page.forms.length > > To see how many come up? If that comes up as 0, > Then examine then page object. > > > Hope that helps > ~jeremy woertink > > > > On Dec 14, 2009, at 10:09 PM, Ross Cameron > wrote: > >> Trying to use BabelFish (http://babelfish.yahoo.com/) to do a >> translation of text via Mechanize. >> >> Their are a couple of forms on it, the form in question being >> "frmTrText". >> >> It all looked pretty straight forward to me, but then again, >> sometimes ... >> >> Anyway, examining page.body, the form is there, as are the other >> forms, but it doesn't appear in the #> >> Code I am using is: >> agent = WWW::Mechanize.new >> page = agent.get(http://babelfish.yahoo.com/translate_txt) >> sf = page.form('frmTrText') >> >> pp sf >> >> => nil >> >> Would appreciate any thoughts on what could be the issue or some direction to resolving the problem. >> >> Regards >> Ross >> >> _______________________________________________ >> Mechanize-users mailing list >> Mechanize-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mechanize-users > ------------------------------------------------------------------------ > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeremywoertink at gmail.com Tue Dec 15 10:41:34 2009 From: jeremywoertink at gmail.com (jeremywoertink at gmail.com) Date: Tue, 15 Dec 2009 07:41:34 -0800 Subject: [Mechanize-users] Missing form in the # References: <4B272804.7080303@roscommonhq.com> <4B27596D.50704@roscommonhq.com> Message-ID: Glad you figured it out. Sometimes it just helps to talk it out. I was gonna ask why you were using hpricot. LOL. ~jeremy woertink On Dec 15, 2009, at 1:39 AM, Ross Cameron wrote: > All good questions. Thanks. > > Mechanize version 0.9.3 > Hpricot version 0.8.2 > > No, javascript isn't involved, it is a static page. > > paged.forms.length = 2 when in fact there are 3 on the page which > also show in page.body. > > So I have tried it with nokogiri (1.4.0) and it works. Looks like an > Hpricot issue. > > Many thanks for getting me thinking. > > Ross > > > Ross Cameron | Director > Roscommon Pty Ltd | ABN 85 099 499 840 > p: +61 2 9016 4133 | m: +61 4 3312 9087 | f: +61 2 9420 4525 | w: www.roscommonhq.com > | AIM: rossppc > > Roscommon uses the five sentences email reply policy. Please > consider our environment before printing this email. > > NOTE: This email and any attachments may be confidential. If > received in error, please delete the email. Because emails and > attachments may be interfered with, may contain computer viruses or > other defects and may not be successfully replicated on other > systems, you must be cautious. Roscommon cannot guarantee that what > you receive is what we sent. If you have any doubts about the > authenticity of an email from Roscommon, please contact us > immediately. > > > jeremywoertink at gmail.com wrote: >> >> A couple questions... >> >> 1. What version of mechanize are you using? >> 2. Is the form generated by javascript? >> 3. Have you tried other methods like >> >> page.forms.length >> >> To see how many come up? If that comes up as 0, >> Then examine then page object. >> >> >> Hope that helps >> ~jeremy woertink >> >> >> >> On Dec 14, 2009, at 10:09 PM, Ross Cameron >> wrote: >> >>> Trying to use BabelFish (http://babelfish.yahoo.com/) to do a >>> translation of text via Mechanize. >>> >>> Their are a couple of forms on it, the form in question being >>> "frmTrText". >>> >>> It all looked pretty straight forward to me, but then again, >>> sometimes ... >>> >>> Anyway, examining page.body, the form is there, as are the other >>> forms, but it doesn't appear in the #>> >>> Code I am using is: >>> agent = WWW::Mechanize.new >>> page = agent.get(http://babelfish.yahoo.com/translate_txt) >>> sf = page.form('frmTrText') >>> >>> pp sf >>> >>> => nil >>> >>> Would appreciate any thoughts on what could be the issue or some >>> direction to resolving the problem. >>> >>> Regards >>> Ross >>> >> >>> _______________________________________________ >>> Mechanize-users mailing list >>> Mechanize-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/mechanize-users >> >> _______________________________________________ >> Mechanize-users mailing list >> Mechanize-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mechanize-users > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pelasaco at gmail.com Wed Dec 16 14:11:07 2009 From: pelasaco at gmail.com (Victor Pereira) Date: Wed, 16 Dec 2009 20:11:07 +0100 Subject: [Mechanize-users] ssl_resolver.rb x mechanizer 0.9.3 Message-ID: <20de8d550912161111w1ed58096yb80e8cfbfc423584@mail.gmail.com> Hi, i have a script running in a Linux Cent OS where i try to do a post in a form. I'm receiving the following errors: [root at deathstar ~]# ruby mensa.rb /usr/lib64/ruby/gems/1.8/gems/mechanize-0.9.3/lib/www/mechanize/chain/ssl_resolver.rb:20:in `handle': undefined method `instance_variable_defined?' for # (NoMethodError) I checked around and i found a workaround that was to set agent.keep_alive = false. I made it and i still having the same error. Any idea? regards VP -------------- next part -------------- An HTML attachment was scrubbed... URL: