azuline / pixiv-api

A documented, idiomatic, and tested wrapper library around Pixiv's App API.
https://pixiv-api.readthedocs.io/
Apache License 2.0
129 stars 13 forks source link

CloudflareChallengeError #16

Open ksKao opened 3 years ago

ksKao commented 3 years ago

I've just started a new project using the python API. I have gotten a new refresh token using this link. I've tried writing a simple program to test and see if the login works. But the below exception is thrown. How do I solve this?

Exception has occurred: CloudflareChallengeError Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.

ghost commented 3 years ago

you can bypass cloudflare, just nslookup pixiv.net to get one of their addresses and put it in your hosts file for www.pixiv.net.

tommyvct commented 3 years ago

you can bypass cloudflare, just nslookup pixiv.net to get one of their addresses and put it in your hosts file for www.pixiv.net.

That trick didn't work anymore.