mikf / gallery-dl

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

[reddit] getting 403 Forbidden for many images #6337

Open NishchayKQ opened 1 week ago

NishchayKQ commented 1 week ago
gallery-dl -v 'https://preview.redd.it/god-bless-the-king-v0-xuae6nj1e7vd1.jpeg?width=1280&format=pjpg&auto=webp&s=13d8a9d8663813bca112cec7acb4df69b20fbda5'
[gallery-dl][debug] Version 1.27.6
[gallery-dl][debug] Python 3.13.0 - Windows-11-10.0.22631-SP0
[gallery-dl][debug] requests 2.32.3 - urllib3 2.2.3
[gallery-dl][debug] Configuration Files ['%APPDATA%\\gallery-dl\\config.json']
[gallery-dl][debug] Starting DownloadJob for 'https://preview.redd.it/god-bless-the-king-v0-xuae6nj1e7vd1.jpeg?width=1280&format=pjpg&auto=webp&s=13d8a9d8663813bca112cec7acb4df69b20fbda5'
[reddit][debug] Using RedditImageExtractor for 'https://preview.redd.it/god-bless-the-king-v0-xuae6nj1e7vd1.jpeg?width=1280&format=pjpg&auto=webp&s=13d8a9d8663813bca112cec7acb4df69b20fbda5'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): i.redd.it:443
[urllib3.connectionpool][debug] https://i.redd.it:443 "GET /god-bless-the-king-v0-xuae6nj1e7vd1.jpeg HTTP/11" 403 418
[downloader.http][warning] '403 Forbidden' for 'https://i.redd.it/god-bless-the-king-v0-xuae6nj1e7vd1.jpeg'
[download][error] Failed to download god-bless-the-king-v0-xuae6nj1e7vd1.jpg

I have tried by removing all my private reddit token, refreshing them and also tired using a vpn... One thing that's interesting is the link it tries to extract

https://i.redd.it/god-bless-the-king-v0-xuae6nj1e7vd1.jpeg

probably does not exist, as when i visit it, reddit just shows cdn media and not the image, whereas the original link works