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

DDOS Protection - Too many requests #170

Open
Akalil-H opened this issue Dec 11, 2022 · 4 comments
Open

DDOS Protection - Too many requests #170

Akalil-H opened this issue Dec 11, 2022 · 4 comments

Comments

@Akalil-H
Copy link

I dont whether this is server issue or program issue. It's like server already implement DDOS protection.

PS F:\Kemono DL> python kemono-dl.py --cookies "cookie.txt" --links https://kemono.party/fanbox/user/5579659
INFO:Downloading posts from kemono.party.party | fanbox | hagure-oekaki | 5579659
INFO:Downloading Post | (R-18)珍しいお宝
INFO:Downloading: 1_30eae496-63d6-401d-8796-f5d055ced9b1.jpg
WARNING:Failed to download: 1_30eae496-63d6-401d-8796-f5d055ced9b1.jpg | 429 Too Many Requests | Sleeping for 120 seconds

@moofmoof02
Copy link

I having this problem too. Though I'm using the fork from rum416 (https://github.com/rum416/kemono-dl) since the latest version having another problem (TypeError: strptime() argument 1 must be str, not float).

And kemono seem to have some kind updates right? I have not been using the web for a few months now.

@L4cache
Copy link

L4cache commented Dec 12, 2022

kemono is in maintenance, maybe it's the cause?

@ILogOutOnTheToilet
Copy link

ILogOutOnTheToilet commented Jan 8, 2023

@Akalil-H @moofmoof02 Can you test out my PR changes by adding --download-timeout 4 parameter and seeing if you still get the error? It will sleep for 4 second between each file download. I suspect this is due to downloading each file in a post too fast. Currently the code doesn't pause between downloading attachments or inline images, and may be violating some rate limit. This has led to me being blocked from kemono.party servers for a few hours, but I fixed it with my PR.

Here is the PR: #177

@Normiegetout
Copy link

@Akalil-H @moofmoof02 Can you test out my PR changes by adding --download-timeout 4 parameter and seeing if you still get the error? It will sleep for 4 second between each file download. I suspect this is due to downloading each file in a post too fast. Currently the code doesn't pause between downloading attachments or inline images, and may be violating some rate limit. This has led to me being blocked from kemono.party servers for a few hours, but I fixed it with my PR.

Here is the PR: #177

Hey, I just had to find my login info to say big thanks for this. Works perfectly even with just --download-timeout 2

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

No branches or pull requests

5 participants