WebService::Antigate::V2 - Recognition of captches using antigate.com service (now anti-captcha.com) through API v2
# you can use it directly use WebService::Antigate::V2; my $recognizer = WebService::Antigate::V2->new(key => "..."); $recognizer->upload_and_recognize(...); # or via base class use WebService::Antigate; my $recognizer = WebService::Antigate->new(key => "...", api_version => 2); $recognizer->upload_and_recognize(...);
This is subclass of WebService::Antigate which implements version 2 of API. API documentation available at https://anticaptcha.atlassian.net/wiki/spaces/API/pages/196635/Documentation+in+English
This class has all methods described in WebService::Antigate. Specific changes listed below.
Constructor changes some options defaults:
KEY DEFAULT OPTIONAL ----------- -------------------- --------------- scheme https yes subdomain api. yes
For other options see WebService::Antigate
API v2 accepts several types of captcha. For now it is: captcha image, recaptcha, funcaptcha. Each type has specific options which may be passed to this method: https://anticaptcha.atlassian.net/wiki/spaces/API/pages/5079084/Captcha+Task+Types
Also some common options available, like softId and languagePool, which also may be passed: https://anticaptcha.atlassian.net/wiki/spaces/API/pages/5079073/createTask+captcha+task+creating
softId
languagePool
How to upload normal captcha from image:
print $recognizer->try_upload( file => "/tmp/captcha.jpeg" # or content => "binary data", # and any options supported by this type you need languagePool => "en", numeric => 1, minLength => 10 # type => 'ImageToTextTask' # you may specify it or not, because when `file' or `content' options detected it will be added automatically );
How to upload recaptcha:
print $recognizer->try_upload( type => 'NoCaptchaTaskProxyless', # here you need to specify type websiteURL => "https://www.google.com/", websiteKey => "6LeZhwoTAAAAAP51ukBEOocjtdKGRDei9wFxFSpm", languagePool => "rn" );
And so on for other types
WebService::Antigate, WebService::Antigate::V1
Oleg G <oleg@cpan.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WebService::Antigate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Antigate
CPAN shell
perl -MCPAN -e shell install WebService::Antigate
For more information on module installation, please visit the detailed CPAN module installation guide.