Skip to content
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

403 Forbidden error when downloading images from Weibo (with Username+Password) -SOLVED: WORKAROUND!!! #3956

Closed
spectrefps opened this issue Apr 23, 2023 · 3 comments

Comments

@spectrefps
Copy link

spectrefps commented Apr 23, 2023

Hello. I am trying to use gallery-dl to bulk download art from various artists on Weibo. However, I keep getting the '403 Forbidden' error when running it (even tried it on specific artwork url instead of just on their main gallery url. Oddly enough, I can go into each specific artwork's url and manually download them individually ('save as' works fine). I am also signed in to my account and updated the session ID cookie in the config file. Still no luck getting gallery-dl to download any of their artworks.

Any ideas?

@spectrefps
Copy link
Author

UPDATE: Found a workaround (in a closed issue thread: #3188). The trick was to add -o downloader.http.headers.Referer="URL_FOR_ART_OR_GALLERY" in front of the art/gallery url. Then it worked fine. Here is the example used in that thread for how the whole command line looks like:

gallery-dl -o downloader.http.headers.Referer="https://weibo.com/1907840615/MbvNTd5Eh" https://weibo.com/1907840615/MbvNTd5Eh

@spectrefps spectrefps changed the title 403 Forbidden error when downloading images from Weibo (with Username+Password) 403 Forbidden error when downloading images from Weibo (with Username+Password) -SOLVED: WORKAROUND!!! Apr 23, 2023
@mikf
Copy link
Owner

mikf commented Apr 23, 2023

The weibo extractor sends Referer headers by itself since v1.24.0 (e3abab8).
What gallery-dl version are you using that you are still getting these errors?

@spectrefps
Copy link
Author

The latest version of the .exe I downloaded was from late February. I'll grab the newest .exe version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants