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

kemono.party 403 forbidden when downloading certain gallery. #2990

Closed
mangleddo opened this issue Sep 30, 2022 · 4 comments
Closed

kemono.party 403 forbidden when downloading certain gallery. #2990

mangleddo opened this issue Sep 30, 2022 · 4 comments

Comments

@mangleddo
Copy link

A gallery I'm downloading suddenly started throwing 403 forbidden.
I had to take a break during downloading because of lack of space and continue couple days later. The gallery is now throwing 403 forbidden on first incomplete file.
Disabling vpn or running with --cookies switch does not help.
The issue can be reproduced by downloading the specific post (below) or specific creator page (below2)
https://kemono.party/patreon/user/5926538/post/21592058
https://kemono.party/patreon/user/5926538?o=575
What I have noticed is, that extractor takes same url as one in page body, but the page body also has a param appended in format of (?f=filename.ext)
The link extracted by extractor gives 403 in browser, but one from page works:
[WARNING - NSFW CONTENT]
broken: https://data60.kemono.party/data/b4/3a/b43a531713f9d0032d0d2b7fdf5c031e635d60ab12d540568863a6d5b7ac5c83.png
working: https://data60.kemono.party/data/b4/3a/b43a531713f9d0032d0d2b7fdf5c031e635d60ab12d540568863a6d5b7ac5c83.png?f=page03_NT.png

Can the extractor be modified to pull whole link with the query param? It should not affect normal downloads, as I'd assume server just ignores extra params, but in this case it seems to require them.

@ghost
Copy link

ghost commented Sep 30, 2022

You now must set a referer header heading from kemono.party or coomer.party. Sorry about that.

@JamiDEV
Copy link

JamiDEV commented Sep 30, 2022

how do you set the referer header? examples used are no help. This is what I've done.

python3 kemono-dl.py --cookies "coomer.party_cookies.txt" --links headers.Referer="https://coomer.party/" https://coomer.party/onlyfans/user/thumbelinavina

@afterdelight
Copy link

that command is for gallery-dl not for other program

@Sherman-Liu
Copy link

Sherman-Liu commented Oct 1, 2022

@JamiDEV

gallery-dl -o headers.Referer="https://kemono.party/" linkthatyouwanttodownload

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

5 participants