Util::ReCaptcha2 - recognition of reCaptcha
Parser Overview
This parser is used only as a connectable component in other parsers, where it may be necessary to solve Google ReCaptcha v2, for example: SE::Google, SE::Google::Images, SE::Google::ByImage, as well as custom JavaScript parsers.
The principle of operation of this parser is to send reCaptcha data (usually it is sitekey and the URL of the page where the reCaptcha was received) to the solving service and receive a token in response, consisting of numbers and letters. The correctness of solving depends only on the solving service, usually the services almost always solve captchas correctly.
Details of the connection and configuration process of this parser are described in the article ReCaptcha Settings
Parser Use Cases
🔗 ReCaptcha in JS parsers
Example of a JS parser for working with captchas
Example of setting up solving via Xevil
In Xevil, it is recommended to choose the API type Antigate (Anti-Captcha)
. In the settings of Util::ReCaptcha2 in the Provider url field, you need to specify the ip:port
of Xevil:
In the Provider field, select Xevil (AntiGate)
:
Capabilities
- Supports working with services such as: AntiCaptcha, RuCaptcha, 2captcha, XEvil, CapMonster, CapMonster.cloud, CapSolver, captchas.io
- Ability to configure response waiting time and status check delay
Usage Options
- Recognition of captchas in embedded parsers, where it is optionally or mandatory to solve captchas to obtain results
- Recognition of captchas in custom JS parsers
Queries
The parser accepts two types of requests:
sitekey
url
sitekey
url
proxy
user-agent
The parameters are separated by a space and mean:
sitekey
- the sitekey of the captchaurl
- the page where the captcha is locatedproxy
- the proxy through which the captcha was obtained. The parameter must be in the formatlogin:pass@ip:port@type
for authenticated proxies orip:port@type
for unauthenticated proxies- type can be
http
,https
,socks4
,socks5
- type can be
user-agent
- the user agent with which the captcha was obtained
Output Results Options
$resp
- captcha response$error
- if an error occurred, its description
Captcha Token Output
Result format:
$resp
Example result:
03AGdBq24qfVWiRMofkMHuxaaW024vkt2Oc4Nnt4WXs3PdV0fJlpDystp444u_rG8HvuJUgN3n-upnHJXeQODxHjn_X9JdRlKEzhDnatYyehxN00WDWN_37LKwdHOgER2TrdB7XBKqrz5rko_CGWea6R1Lfe3eKmkoOeHkTyn8H3ZI90wcSvZR8gSztvq5EZWpGdNgLq15w84F92-PR8S051gUH2Ls82An0N4iiAIcTFrOTQZizqfIjgVzCzqHhSaigIPGy6j8-3nt1sac7q6Xn26fKLsQzd4hZDmrlem5rNoK-IQHEb_AUJ6r4UxQZQ-z4hk9wPpzdeiCi81sxWEX5YI-cn4cWYFsoWutv_DYvZy87Iog7u1VELGWvjT3XwkY3MyDZzpUfauyCGSd5oouLDhV5YnRPfMm-gWQUSRpt28z5xbVbwGSAfmMLEpFboCgKZdUhb-IdAiKHGA4oSXB3RhOA9TQZR-ETVqyUG8A4wJEXdCvEHU7Uhw
Possible Settings
The Provider parameter is used to select the service.
For online services (AntiCaptcha, RuCaptcha, 2captcha, CapMonster.cloud, CapSolver, captchas.io), the Client key parameter must be set.
Parameter | Default Value | Description |
---|---|---|
Client key | Client key for online captcha solving services | |
Provider url | Provider URL, allows to override the domain. Multiple URLs can be specified separated by commas, the scraper will use each of them in random order. Can be empty, the scraper automatically uses the necessary one depending on the selected captcha solving service | |
Provider | AntiCaptcha | Captcha solving service |
Wait between get status | 5 | Delay between getting status |
Max wait time | 300 | Maximum waiting time for solving |
Threshold % for (Capmonster.cloud) | 0 | Confidence threshold (used only in capmonster.cloud) |