ZennoLab

Automate everything

User Tools

Site Tools


Sidebar

Translations of this page:

en:captcha-recognition

This is an old revision of the document!


CAPTCHA recognition

ZennoPoster offers several ways to set up the CAPTCHA recognition function - manually (through manual recognition servers) or by creating your own CAPTCHA recognition module.

In order to be able to solve CAPTCHA's in a way different from the manual technique, you must set a module through which they will be recognized in action's settings (double click on this action in ProjectMaker - there you will see drop down list). Also in program's settings you will have to save your logins or keys for anticaptcha service that you will use.

If it's necessary, you can set additional parameters (quite often there are no parameters at all). Get updated parameters from the sites of web services you are interested in. You may need these parameters for certain cases, such as, dealing with a mathematical CAPTCHA, i.e. instead of typing in 7+5 you have to indicate the resulting calculation, which is 12. Other cases concern reCAPTCHA or CAPTCHA's containing numbers or when it is a case-sensitive CAPTCHA.

If CAPTCHA comprises several images you can stick them to save time for recognizing separate parts of CAPTCHA. To stick CAPTCHA's (unless you have not done this when recording your template) open action's settings (double click), tick the 'Stick CAPTCHAs' box and identify as the 'Last CAPTCHA' the one which is the last in the row of CAPTCHA's to combine.

Text CAPTCHAs

You may often encounter a text CAPTCHA, especially on poorly protected web resources. This type of CAPTCHA differs from the simple (graphical) one by its nature - it's no longer a picture but plain text. You do not need to send this CAPTCHA anywhere; you can extract it (by parsing) right from the text on the web page. You can use Tabs - Data action. Choose what type of data to work with (text, source, DOM), tick Result checkbox, set regular expression for parsing.


Mathematical text CAPTCHAs

This is the same text CAPTCHA with a minor difference. Instead of text, a mathematical expression is used, e.g. 58+63. You can transform this text into an image (see info on flash CAPTCHA) and send it for recognition. Another option is to use a Own code - JavaScript action. You may insert the parsed expression (58+63) as a variable into the code area and after execution it will return the sum - 121 which you will be able to save to another variable for future use.


Flash CAPTCHAs or CAPTCHAs from any other element on page

ZennoPoster can turn (render) any element into an image. Flash is just an example. First find this element in the Element Tree, then by right clicking open the menu to select actions that can be performed upon this element. Select the 'This Is CAPTCHA' option and that's all!

How to handle CAPTCHA recognition errors



How to report wrong entered captchas to captcha service

First You should parse for error on page after captcha input, if error found connect it to HTTP GET action and in url field put {-Variable.WrongCaptcha0-} variable. And wrong captcha will be sent back to captcha service.

Click to download example template.

en/captcha-recognition.1375495127.txt.gz · Last modified: 2015/07/14 15:50 (external edit)