Util::hCaptcha - hCaptcha recognition
Parser Overview
This parser is used only as a connectable component in other parsers, where it may be necessary to solve hCaptcha, as well as in custom JavaScript parsers.
The principle of operation of this parser is to send hCaptcha data (usually it is sitekey and the URL of the page where the hCaptcha was obtained) 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 hCaptcha correctly.
TODO: (next) Describe connection/usage and/or provide a link to an example
Capabilities
- Supports working with such services: AntiCaptcha, RuCaptcha, 2captcha, CapMonster.cloud, CapSolver, captchas.io, XEvil
- Ability to adjust response waiting time and status check delay
Use Cases
- Recognizing hCaptcha in parsers, where it is optionally or necessarily required to solve hCaptcha to obtain results
Queries
The parser accepts two types of queries:
sitekey
url
sitekey
url
proxy
user-agent
The parameters are separated by a space and mean:
sitekey
- the sitekey of hCaptchaurl
- the page where the hCaptcha is locatedproxy
- the proxy through which the hCaptcha was obtained. The parameter should 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 hCaptcha was obtained
Output Result Options
$resp
- response (token) of hCaptcha$error
- if an error occurred, its description
hCaptcha Token Output
Result format:
$resp
Result example:
P0_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXNza2V5IjoiVXJ3bllsN0VIeGxsTTA2Nm5LVTl3VFQzY3dFdmJTTVpreGZnUGM5YlNjaFZCaE1JL0l5MnR2VjN6TjlVQUM4cjEyOWlFaHZrUkg4VnV5Y3JwUW1wRjFFZ0wwZk92VjFuRjlyV1dmUlhSYjRFaHdvekw5RitaNXdlenBHR1FRQkgzdWF5dCtYWnJSM2d2Mjh6WXhmeTdLaGlCUjFDdDRLVG9tQ1RYVm90S3dsdTJHOW8xQm5XZy9jT0E1WGd1OUc1bGNBaFJMNVVRNGt4cm4rZ2hkTTlIdEJ3SU4xcTcyZnNtbGxGenN4UE40OGtwRFVBUXhydnVMcVlaTDA2SmozWWZNWWp0WU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kL3RWY0lFeFpYVlZkTUVIV3llUHhGdzBTdVNld0RseCtaamJpc2RMQXBsd2RYalZqZ0g3cE5VTGxVbXREalRBakV0bFlYVmI4YUl3NEI0bk1uTGJQb0hXeVY4RUJjMWo4ZGdnOTU5Mk01OUk0NFBoMUFTTjZVZz09TnNTUFo4czYxdEwreTh2YyIsImV4cCI6MTY0MzE4NDg4MSwic2hhcmRfaWQiOjgyMDc4NjA4NiwicGQiOjB9.V7DPQWNQkZBS_g2OX0B64zFnrHqnPMmGKv44vLW5N5g
Possible Settings
The Provider parameter is used to select the service.
Parameter | Default Value | Description |
---|---|---|
Client key | Client key for online solving services | |
Provider url | Provider URL, allows to override the domain. Multiple URLs can be specified separated by commas, the parser will use each of them in random order. Can be empty, the parser automatically uses the necessary one depending on the selected solving service | |
Provider | AntiCaptcha | Solving service |
Wait between get status | 5 | Delay between getting the status |
Max wait time | 300 | Maximum solving waiting time |
Threshold % for Capmonster.Cloud | 0 | Confidence threshold (used only in capmonster.cloud) |