Skip to main content

Util::RotateCaptcha - captcha recognition via supported services

Parser overview

rotatecaptcha

This parser is typically used as a plug-in component in other parsers where it may be necessary to solve image captchas that require a response in the form of the number of degrees to rotate the image.

The principle of this parser's operation consists of sending the captcha image to a solving service and receiving in response the number of degrees the image should be rotated. The accuracy of the solving depends entirely on the solving service.

Parser usage cases

Capabilities

  • Support for RuCaptcha and 2captcha
  • Ability to configure the response timeout

Use cases

  • RotateCaptcha recognition in custom JS parsers

Queries

A link to the captcha image must be specified as a query, example:

https://files.a-parser.com/img/rotatecaptcha_sample.png

Output results examples

  • $resp - captcha response (the number of degrees to rotate the image)
  • $error - if an error occurred, its description

Recognized text output

Result format:

$resp

Result example:

215

Possible settings

ParameterDefault valueDescription
ProviderRuCaptchaSolving service selection, automatically substitutes the correct service address (url)
Provider urlSolving service domain, allows overriding the service domain, can be empty
Client keyService access key
Wait between get status5Delay between polling the solving service for captcha status
Max wait time300Maximum wait time for a recognized captcha
Log captcha imagesControl of captcha image output to the log
Angle of rotation per step in degrees5Rotation angle per step in degrees