Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with hcaptcha and selenium on artstation.com #63

Open
nonamethanks opened this issue Apr 5, 2020 · 8 comments
Open

Issues with hcaptcha and selenium on artstation.com #63

nonamethanks opened this issue Apr 5, 2020 · 8 comments

Comments

@nonamethanks
Copy link

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
Copy link
Owner

ad-m commented Apr 5, 2020

Why do you think that website use hcaptcha?

Sign up form use ReCaptcha:

obraz

@nonamethanks
Copy link
Author

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

@ad-m
Copy link
Owner

ad-m commented Apr 5, 2020

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
Copy link
Author

image
Here's also a screenshot for the failure

@nonamethanks
Copy link
Author

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
Copy link

VeNoMouS commented Apr 5, 2020

@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
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants