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: <http://rubyforge.org/pipermail/mechanize-users/attachments/20110118/bf9a58ff/attachment.html>
mattw922 at gmail.com
2011-Jan-18 14:36 UTC
[Mechanize-users] how to get captcha image with mechanize ?
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 <blackanger.z at gmail.com> 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: <http://rubyforge.org/pipermail/mechanize-users/attachments/20110118/6378ba75/attachment.html>
Benjamin Manns
2011-Jan-18 21:59 UTC
[Mechanize-users] how to get captcha image with mechanize ?
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, <mattw922 at gmail.com> 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 <blackanger.z at gmail.com> 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: <http://rubyforge.org/pipermail/mechanize-users/attachments/20110118/5252774a/attachment.html>