ad-m / python-anticaptcha

Client library for solve captchas with Anticaptcha.com support.
http://python-anticaptcha.readthedocs.io/en/latest/
MIT License
222 stars 51 forks source link

Issues with hcaptcha and selenium on artstation.com #63

Open nonamethanks opened 4 years ago

nonamethanks commented 4 years ago

I'm having trouble solving artstation's login hcaptcha with selenium. Using requests is not an option because it requires javascript enabled, and the usual actions like for the recaptcha selenium examples don't seem to work. The error I get is "Incorrect. Please try again".

Note that not everyone gets the login captcha, some IPs are excluded from it for some reason. Might have to use a VPN to force it showing.

If it helps, I can provide the page source. I can extract the data-sitekey value just fine and I readd it with execute_script, assigning the token to the innerHTML of [name='g-recaptcha-response'], but it still doesn't work.

ad-m commented 4 years ago

Why do you think that website use hcaptcha?

Sign up form use ReCaptcha:

obraz

nonamethanks commented 4 years ago

Because on my headless server's IP I get this page: image

ad-m commented 4 years ago

This screen indicates security derived from CloudFlare. Propably @VeNoMouS, as author of cloudscraper (library which bypass multiple security mechanism of CloudFlare) have experience in that area.

@VeNoMouS, do you have significant input at first glance or should I sit down and take a look at the Selenium problem?

nonamethanks commented 4 years ago

image Here's also a screenshot for the failure

nonamethanks commented 4 years ago

I should also add, before a couple of days ago they were using cloudflare's recaptcha page instead. From a quick google search iIt seems cloudflare's switch to hcaptcha happened this week, so more domains exhibit the same problem.

http://cinewhale.com/ this is a domain that I can get hcaptcha on even on my home IP, so it might be worth investigating if the same issue with selenium happens here too, if it's not possible to replicate artstation's cloudflare protection.

VeNoMouS commented 4 years ago

@nonamethanks have you tried this via proxy task? im just wondering if its related to CF cdn endpoint because the worker for anticaptcha most likely isnt being presented with the hCaptcha, perhaps it does when pushed through the same proxy?

nonamethanks commented 4 years ago

I don't have a proxy server installed on my machine, so I'd have to set it up before I could do that. But I'm getting a token with the proxyless one, so I thought the worker was getting it too.

Rezwan007 commented 2 years ago

How to submit the API token in hidden textarea do you have any suggestions using python web automation ...