-
Notifications
You must be signed in to change notification settings - Fork 150
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
Cloudflare Captcha detected, unfortunately you haven't loaded an anti Captcha provider correctly via the 'captcha' parameter #172
Comments
I checked cloudscrap's readme and it looks like it requires a 3rd party captcha solver to deal with the issue? I am so confused.. I did not change anything on my server, what caused the problem? |
We never know what approach Cloudflare has done in terms of anti-bots and cause these captchas. Maybe it checked the cookie, or added a IP greylist, or it was simply random. As a monkey patch, you can try: import cloudscraper
api = AppPixivAPI()
# Override the default cloud scraper created by pixivpy
# Refer to cloudscraper's doc for usage:
# https://github.com/venomous/cloudscraper#3rd-party-captcha-solvers
api.requests = cloudscraper.create_scraper(captcha={...})
# Other stuff as you normally did
api.auth(...)
... In my personal experience on my own computer (in the US), even if the captcha exists in the first run, but it may disappear in the immediate second run. For me it is a random problem. |
@Xdynix Thanks for the explain. I have a script which runs every one hour, it refreshs access_token by auth() menthod.
I did not notice that and about two weeks ago the error message turned into the captcha one I mentioned above. At first it occured occasionally, and till now it is a 100% captcha failure every hour. So I guess I should clear my current access_token and try login again, unfortunately then I got
I searched it and find out it seems to be no longer possible to login in by username & password #158 So my question now has turned to.. how can I login in and get access_token now?
So sorry for the long confusing info, it takes some time for me to figure out what happened before... |
Due to #158 reason, password login no longer exist. Please use To get |
@upbit Solved! Thank you so much for the help! I didn't notice the instruction even it is at the first line..😅 |
I searched 'captch' in the repo but didn't find any documents on the parament. Can you tell me how to fix the issue?
The text was updated successfully, but these errors were encountered: