Util::RotateCaptcha - captcha recognition through supported services
Overview of the scraper
This scraper is usually used as a plug-in component in other scrapers, where it may be necessary to decipher captchas in the form of images and the response to which should be the number of degrees to rotate the image.
The principle of this scraper is to send the captcha image to the deciphering service and receive the number of degrees to rotate the image in response. The accuracy of deciphering depends exclusively on the deciphering service.
Use cases for the scraper
🔗 Captcha in JS scrapers
Example of a JS scraper for working with captchas
Capabilities
- Working with RuCaptcha and 2captcha is supported
- Ability to configure the response waiting time
Usage scenarios
- Recognizing RotateCaptcha in your own JS scrapers
Queries
As queries, you need to 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, then its description
Output of the recognized text
Result format:
$resp
Example of the result:
215
Possible settings
Parameter | Default value | Description |
---|---|---|
Provider | RuCaptcha | Choice of deciphering service, automatically inserts the correct address (url) of the service |
Provider url | Deciphering service domain, allows to override the service domain, can be empty | |
Client key | Access key to the service | |
Wait between get status | 5 | Delay between polls of the deciphering service about the status of the captcha |
Max wait time | 300 | Maximum waiting time for the recognized captcha |
Log captcha images | ☐ | Control the output of captcha images in the log |
Angle of rotation per step in degrees | 5 | Angle of rotation per step in degrees |