Util::RotateCaptcha - captcha recognition via supported services
Parser overview

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
🔗 Captcha in JS parsers
Example of a JS parser for working with captchas
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
| Parameter | Default value | Description |
|---|---|---|
| Provider | RuCaptcha | Solving service selection, automatically substitutes the correct service address (url) |
| Provider url | Solving service domain, allows overriding the service domain, can be empty | |
| Client key | Service access key | |
| Wait between get status | 5 | Delay between polling the solving service for captcha status |
| Max wait time | 300 | Maximum wait time for a recognized captcha |
| Log captcha images | ☐ | Control of captcha image output to the log |
| Angle of rotation per step in degrees | 5 | Rotation angle per step in degrees |