From blackanger.z at gmail.com Tue Jan 18 02:37:20 2011 From: blackanger.z at gmail.com (Alex) Date: Tue, 18 Jan 2011 15:37:20 +0800 Subject: [Mechanize-users] how to get captcha image with mechanize ? Message-ID: Hey, how to get captcha image with mechanize ? the image is not a static picture, it's a stream, a text-model. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mattw922 at gmail.com Tue Jan 18 09:36:08 2011 From: mattw922 at gmail.com (mattw922 at gmail.com) Date: Tue, 18 Jan 2011 14:36:08 +0000 Subject: [Mechanize-users] how to get captcha image with mechanize ? In-Reply-To: Message-ID: <000e0cd2bfd2320ff4049a1fd2a5@google.com> Alex, The whole point of CAPTCHA is to prevent bots from completing forms. Mechanize can't do them. You'll have to try something else. Matt White On Jan 18, 2011 12:37am, Alex wrote: > Hey, how to get captcha image with mechanize ? the image is not a static > picture, it's a stream, a text-model. -------------- next part -------------- An HTML attachment was scrubbed... URL: From benmanns at gmail.com Tue Jan 18 16:59:07 2011 From: benmanns at gmail.com (Benjamin Manns) Date: Tue, 18 Jan 2011 16:59:07 -0500 Subject: [Mechanize-users] how to get captcha image with mechanize ? In-Reply-To: <000e0cd2bfd2320ff4049a1fd2a5@google.com> References: <000e0cd2bfd2320ff4049a1fd2a5@google.com> Message-ID: Alex, You can use mechanize to get the CAPTCHA image (see Mechanize::Page#images), but you will have to present the image to a user (or another program, not related to mechanize or this mailing list). If the CAPTCHA is in a "copy-and-paste-able" textbox (which I think is what you mean by "not a static picture, it's a stream, a text-model"), you can use Mechanize::Page#forms and Mechanize::Form#texts or Mechanize::Form#[] to get the text value. Ben Manns On Tue, Jan 18, 2011 at 9:36 AM, wrote: > Alex, > > The whole point of CAPTCHA is to prevent bots from completing forms. > Mechanize can't do them. You'll have to try something else. > > Matt White > > > On Jan 18, 2011 12:37am, Alex wrote: > > Hey, how to get captcha image with mechanize ? the image is not a static > picture, it's a stream, a text-model. > > > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users > -- Benjamin Manns benmanns at gmail.com (434) 321-8324 -------------- next part -------------- An HTML attachment was scrubbed... URL: