mikf / gallery-dl

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

Kemono: 403 Forbidden #1370

Closed tutuw002 closed 3 years ago

tutuw002 commented 3 years ago

I don't know if it's just my problem or not, but I keep getting 403 forbidden errors when downloading from kemono.

Version: 1.17.0

Log file: log.txt

mikf commented 3 years ago

This is due to the DDoS-GUARD thing they've set up. Export the __ddg1 and __ddg2 cookies for .kemono.party from your browser and use those with gallery-dl. (See Cookies)

# Netscape HTTP Cookie File

.kemono.party   TRUE    /   FALSE   1647009083  __ddg1  EzPymfq55EXGlN8XbAPs
.kemono.party   TRUE    /   FALSE   1647009080  __ddg2  H4EFIW1N0uz4GDy7
tutuw002 commented 3 years ago

Thanks, that worked well for me

HydroHydro commented 3 years ago

Please forgive my n00b question here...

I have my ddg1 and ddg2 cookies from Chrome. That was easy. But now what do I do with them? Put then in the config file? Where? How?

mikf commented 3 years ago

Like it is described in Cookies. Either put them in your config file our export them and use --cookies.

{
    "extractor": {
        "kemonoparty": {
            "cookies": {
                "__ddg1": "...",
                "__ddg2": "..."
            }
        }
    }
}
HydroHydro commented 3 years ago

Thank you!

Diadial commented 3 years ago

Hello, I was successful at using the cookie method, specifically using an extension to export the bookies into a .txt file.

For reference of other users I will include a picture to show how it should be formatted. I used the get_cookies_txt extension for Chrome as provided in the "Cookies" section. image

I would like to note however that the automated process is very slow. The images downloaded are from the span of 4-5 minutes. I do not believe this is the fault of mikf's program however. I believe this is because of Kemono's servers. So I suggest all of you be patient and let this run in the background as you do another task. Additionally, I would not recommend altering the contents of the save folder, the the images go, until they're done. Primarily because the program creates a .PART file.

I will update this post if I run into any issues. I'm particularly interested to see if the program will stop at the page. For example, the first page of a Kemonoparty page is "offset: 0". I'm curious if the program will rip the images from the proceeding, "offset: 25", "offset:50" exc. pages or if I will have to input the new page URL manually.

I suppose you could run multiple instances of your CMD prompt. But I don't think I will try such a thing. Kemono's servers seem weak enough as it is. I would not like to put additional stress on their website!

Regardless, it is working smoothly now. Thank you for the program mikf!

super-lurker commented 3 years ago

is it possible to auto update kemono.party cookies ??