-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
AnimePahe is broken #299
Comments
this error happened because for some weird reasons AnimePahe decided it's a good idea to put a DDoS Guard on EVERY PAGES including API respond. Here is how this error happenedwhen Animdl search for anime titles on the site it will made an API request with url similar to this which should get a JSON respond like this {
"total": 3,
"per_page": 8,
"current_page": 1,
"last_page": 1,
"from": 1,
"to": 3,
"data": [
{
"id": 5442,
"title": "Oroka na Tenshi wa Akuma to Odoru",
"type": "TV",
"episodes": 12,
"status": "Currently Airing",
"season": "Winter",
"year": 2024,
"score": 6.62,
"poster": "https:\/\/i.animepahe.ru\/posters\/dedc73ea139e05bddd50651cb35112806aaf984deaea672d25093def0d2a60aa.jpg",
"session": "f115f686-4214-ee80-a402-6e801f2f6534"
},
...
]
} unfortunately this is what we got since and when Animdl tries to parse the fake loading screen it failed with the error you've received. so... Is there any ways to fix/workaround this?I'm not an expert but from what I know... not much actually. unless AnimePahe remove this protection this is what we can try:
Wait for the fake loading screen to go awaythis simplest method is probably Wait for the fake loading screen to go away Use cookies hackcookies that saved on the browser can prevent the fake loading screen from appearing the second time. Still, it's not flawlessno matter what we do DDoS Guard is still active on the server, soon on later it could suspect PS: I'm still working this even though I'm not a contributor, because I still needs Animdl for my animes need ;) |
animdl/animdl/core/cli/http_client.py Lines 17 to 20 in c7c3b79
Adding ".animepahe.ru" to this function should fix it
utils.http_client.integrate_ddg_bypassing(
client,
".marin.moe",
".animepahe.ru",
) |
I'm extremely busy rn due to university. I'll say that please refrain from posting (or even mentioning) that part of the codebase. It is an extremely unrecognized method that if fixed could sabotage a lot of scrapers. |
AnimePahe is not working. Below is the error message I receive every time I use the following.
The text was updated successfully, but these errors were encountered: