mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.69k stars 954 forks source link

[e621] Cloudflare CAPTCHA 403 Forbidden Error #1581

Closed austblack88 closed 3 years ago

austblack88 commented 3 years ago

So for the first time I got a CAPTCHA error from e621 today. I think this is a brand new thing for them since I've never encountered it in the browser before today.

Here's the output:

[gallery-dl][debug] Version 1.17.5-dev
[gallery-dl][debug] Python 3.8.3 - Windows-10-10.0.19041-SP0
[gallery-dl][debug] requests 2.25.1 - urllib3 1.26.4
[gallery-dl][debug] Starting DownloadJob for 'https://e621.net/posts?tags=captainjingo'
[e621][debug] Using HTTP Basic Auth for user 'RiotRiot'
[e621][debug] Using E621TagExtractor for 'https://e621.net/posts?tags=captainjingo'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): e621.net:443
[urllib3.connectionpool][debug] https://e621.net:443 "GET /posts.json?tags=captainjingo&limit=320 HTTP/1.1" 403 None
[e621][warning] Cloudflare CAPTCHA
[e621][error] HttpError: '403 Forbidden' for 'https://e621.net/posts.json'

I tried adding my cookies, as well as changing the api key, in the config file, but no luck.

mikf commented 3 years ago

It's a temporary measure. Just give it some time.

https://e621.net/forum_topics/29608?page=1#forum_post_310009

Adding cookies and adjusting the user-agent might have worked, but gallery-dl has to use a custom user-agent for e621's API which can't be changed other than modifying the code.