/
How to find the necessary parameters for hCaptcha
How to find the necessary parameters for hCaptcha
每个网站都不一样,如果以下方式都不能解决问题,烦请您自己多研究研究,您可以的。
第一种:搜索网页源代码
1、打开网页,按F12->Elements,搜索关键词data-sitekey
data-sitekey
就是参数websiteKey
,
<div class="h-captcha" data-sitekey="3ceb8624-1970-4e6b-91d5-70317b70b651" id="hcaptcha"></div>
websiteURL
一般就是当前网页的域名,
比如你在baidu.com/xxx上看到的,http://baidu.com
就是我们要的参数
2、打开包含的网页,按F12->Network,搜索关键词hcaptcha
找到一个请求:其中sitekey
就是我们需要的websiteKey
,
https://hcaptcha.com/checksiteconfig?v=4ad5c92&host=democaptcha.com&sitekey=51829642-2cda-4b09-896c-594f89d700cc&sc=1&swa=1
第二种:通过插件自动获取参数
首先阅读插件教程,安装好插件:https://yescaptcha.atlassian.net/wiki/spaces/YESCAPTCHA/pages/64196594
通过浏览器按F12键->console界面,观察createTask发送的请求参数
识别参数直接就包含了全部需要获取的参数以及版本
全部版本点这里:Princing Table
{
"clientKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"task": {
"websiteURL": "https://www.google.com/",
"websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
"type": "NoCaptchaTaskProxyless" // 这里是版本
}
}
在极特殊情况下(比如同时存在多个),可能会出现识别失误的情况,请注意甄别。
还有一种情况,网页加载时出现的并不包含action值,
进行提交验证的时候才会生成正确的action值,也会误导插件导致参数错误。
, multiple selections available,
Related content
How to find the necessary parameters for Google reCaptcha
How to find the necessary parameters for Google reCaptcha
More like this
如何找到 reCaptcha 需要的各项参数
如何找到 reCaptcha 需要的各项参数
More like this
RecaptchaV3TaskProxyless: reCaptcha V3 协议接口
RecaptchaV3TaskProxyless: reCaptcha V3 协议接口
More like this
HCaptcha 图像识别模拟点击Python selenium 教程和DEMO
HCaptcha 图像识别模拟点击Python selenium 教程和DEMO
More like this
NoCaptchaTaskProxyless : reCaptcha V2 协议接口
NoCaptchaTaskProxyless : reCaptcha V2 协议接口
More like this
HCaptchaTaskProxyless: hCaptcha protocol interface
HCaptchaTaskProxyless: hCaptcha protocol interface
More like this