Skip to main content

Util::RotateCaptcha - Captcha recognition via supported services

Overview of the scraper

rotatecaptcha

This scraper is usually used as a plug-in component in other scrapers where it may be necessary to solve image captchas, and the answer must be the number of degrees by which the image should be rotated.

The principle of this scraper is to send the captcha image to the solving service and receive the number of degrees by which the image should be rotated in response. The correctness of the solution depends solely on the solving service.

Scraper application cases

Capabilities

  • Supports working with RuCaptcha and 2captcha
  • Ability to configure response timeout

Use Cases

  • Recognition of RotateCaptcha in proprietary JS scrapers

Queries

As queries, you need to specify the link to the captcha image, example:

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

Output results examples

  • $resp - captcha answer (the number of degrees by which the image should be rotated)
  • $error - if an error occurred, its description

Output of recognized text

Result format:

$resp

Result example:

215

Possible settings

ParameterDefault valueDescription
ProviderRuCaptchaSelection of the solving service, automatically substitutes the correct service address (url)
Provider urlDomain of the solving service, allows overriding the service domain, can be empty
Client keyAccess key to the service
Wait between get status5Delay between polling the solving service about captcha status
Max wait time300Maximum waiting time for recognized captcha
Log captcha imagesControl of outputting captcha images to the log
Angle of rotation per step in degrees5Rotation angle per step in degrees