Skip to main content

Util::RotateCaptcha - captcha recognition via supported services

Overview of the scraper

rotatecaptcha

This scraper is typically used as a plug-in component in other scrapers where it may be necessary to solve image-based captchas that require the number of degrees to rotate the image as an answer.

The principle of this scraper's operation consists of sending the captcha image to a solving service and receiving back the number of degrees the image needs to be rotated. The accuracy of the solving depends solely on the solving service.

Scraper use cases

Capabilities

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

Use cases

  • RotateCaptcha recognition in custom JS scrapers

Queries

As queries, you must specify a link to the captcha image, for 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

Outputting recognized text

Result format:

$resp

Example result:

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 imagesManage outputting captcha images to the log
Angle of rotation per step in degrees5Rotation angle per step in degrees