2captcha / 2captcha-python

Python 3 package for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, сloudflare turnstile, funcaptcha, geetest and solve any other captchas.
https://pypi.org/project/2captcha-python
MIT License
532 stars 91 forks source link

Cloudflare Turnstile ERROR_CAPTCHA_UNSOLVABLE #66

Closed bingyu50 closed 4 weeks ago

bingyu50 commented 10 months ago

Looks like Cloudflare Turnstile does not work now.

RezohlazovVI commented 8 months ago

Hi, @bingyu50! Have you been able to solve this? Was your captcha type "interactive" or "managed"? It looks like 2captcha doesn't support interactive turnstile captchas, because it works fine for managed turnstile in their API docs

Jackson-Vieira commented 8 months ago

Hi @RezohlazovVI, I have same error ERROR_CAPTCHA_UNSOLVABLEthis captcha info and the following code:

image

result = solver.turnstile(
    sitekey="0x4AAAAAAADnPIDROrmt1Wwj",
    url="https://cityoflapcp.ezlinksgolf.com/index.html#/search",
    data="foo",
    pagedata="cloudflare captcha",
    action="challenge",
)

print("Result: ", result)

sleep(30)

captchaId = result["captchaId"]
url = (
    f"https://2captcha.com/res.php?key={YOUR_API_KEY}&action=get&id={captchaId}&json=1"
)

response = requests.get(url)

can you help me?

dzmitry-duboyski commented 4 months ago

@bingyu50 @Jackson-Vieira @RezohlazovVI Good afternoon. 2Captcha successfully solves captcha on the site you specified. To solve captcha on this site it is not enough to pass captcha parameters, you need to follow the instructions described in the article Bypassing Cloudflare Challenge with Puppeteer and 2Captcha.

There is a great example demonstrating how to bypass Cloudflare challenge page. Just change the URL of the page to the one you need in example, the captcha will be solved successfully.

Please let me know if you have any problems.

codingmall commented 3 months ago

When you access a site which shows "Just a momemnt" page and says "Verify you are human by completing the action below." then when you click the checkbox it redirects to the actual site as a POST request and in the request payload it does not contain 'token' parameter at all. It sends 5 randomly named secret parameters with long encrypted values to the actual site which verifies them and allow you to move on.

I believe this is not possible to solve using 2captcha because all 2captcha docs mentioned a single 'token' parameter everywhere. Is it right?

I have almost created a custom solution to solve those site entry captchas by the way but it is a big job and still much left do it. Can 2captcha solve it? Or should I continue with my custom solution?

kslr commented 1 month ago

When you access a site which shows "Just a momemnt" page and says "Verify you are human by completing the action below." then when you click the checkbox it redirects to the actual site as a POST request and in the request payload it does not contain 'token' parameter at all. It sends 5 randomly named secret parameters with long encrypted values to the actual site which verifies them and allow you to move on.

I believe this is not possible to solve using 2captcha because all 2captcha docs mentioned a single 'token' parameter everywhere. Is it right?

I have almost created a custom solution to solve those site entry captchas by the way but it is a big job and still much left do it. Can 2captcha solve it? Or should I continue with my custom solution?

try cf_clearance in cookie

evil1morty commented 4 weeks ago

Does not work with https://ahrefs.com/backlink-checker

abdul-jabbar-ms commented 4 weeks ago

Does not work with https://ahrefs.com/backlink-checker

I know somebody who has solved it for situations like you mentioned for ahrefs. I have seen the solution working. It was amazing. Fully automatic.