rainyroads / twitter-saucenao

A Twitter bot that utilizes the SauceNao API to find the source of images or anime screencaps
GNU Affero General Public License v3.0
257 stars 19 forks source link

Captcha error with Pixiv #67

Closed Cknight70 closed 3 years ago

Cknight70 commented 3 years ago

Describe the bug When running the current bot from the master branch with the newest version of pixivpy and cloudscraper I receive an error stating an error with cloudscraper.

Exception / error logs

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
pixivpy3.utils.PixivError: requests POST https://oauth.secure.pixiv.net/auth/token error: Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.

Server (please complete the following information):

rainyroads commented 3 years ago

Are you using a refresh token and not the standard username/password authentication method?

If so, this is unfortunately an issue you'll have to take up with pixivpy3, it's not a library I maintain. https://github.com/upbit/pixivpy