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 DDoS cookies issue #1716

Closed
ZyyDesu opened this issue Jul 22, 2021 · 5 comments
Closed

Kemono.Party DDoS cookies issue #1716

ZyyDesu opened this issue Jul 22, 2021 · 5 comments

Comments

@ZyyDesu
Copy link

ZyyDesu commented Jul 22, 2021

I'm having an issue with kemono.party, where it's telling me that I haven't set the DDoS Guard cookies.
I've tried adding them manually to the default config linked on the git page, but I'm assuming I did it incorrectly:

"kemonoparty":
{
	"cookies":
		{
		"__ddg1": "DDG1 HERE"
		"__ddg2": "DDG2 HERE"
		"session": "SESSIONCOOKIE HERE"
		}
},

I also tried adding them via the cmd, with an exported file from Firefox, with the linked plugin on the git page, and it tells me:

C:\Users\Zyy>gallery-dl --cookies "C:/Users/Zyy/gallery-dl/cookies-kemono-party.txt" https://kemono.party/
[gallery-dl][error] No suitable extractor found for 'https://kemono.party/'

Running the "gallery-dl --list-extractors" command is telling me I have both the extractors "KemonopartyPostExtractor" and "KemonopartyUserExtractor"

@mikf
Copy link
Owner

mikf commented Jul 22, 2021

The cookie values in your config example need a comma , between them.
Since you already have a cookies.txt file, you can also use this option to point to that:

"kemonoparty":
{
    "cookies": "C:/Users/Zyy/gallery-dl/cookies-kemono-party.txt"
},

[gallery-dl][error] No suitable extractor found for 'https://kemono.party/'

https://kemono.party/ on its own is not a recognized URL. It needs to point to a specific user listing or post, e.g. https://kemono.party/SERVICE/user/USER_ID

@ZyyDesu
Copy link
Author

ZyyDesu commented Jul 22, 2021

The cookie values in your config example need a comma , between them.

Like so? (doesn't work either)

"kemonoparty":
{
	"cookies":
		{
		"__ddg1": "DDG1 HERE",
		"__ddg2": "DDG2 HERE",
		"session": "SESSIONCOOKIE HERE"
		}
},

I tried linking the txt file directly as well, and just tried again, directly copy and pasting your example, and I still get the error.

@mikf
Copy link
Owner

mikf commented Jul 22, 2021

Is your config file actually in one of the places listed here? You not getting a warning for missing commas and it not working with what you posted in #1716 (comment) makes me think that this might be the case. (assuming what you posted here is just the kemonoparty section of your entire config file)

You could also try

$ gallery-dl --cookies "C:/Users/Zyy/gallery-dl/cookies-kemono-party.txt" https://kemono.party/fanbox/user/7356311/post/802343
# or
$ gallery-dl -c "C:\path\to\config.file" https://kemono.party/fanbox/user/7356311/post/802343

@ZyyDesu
Copy link
Author

ZyyDesu commented Jul 22, 2021

I got it working, just before seeing that you posted a new reply.
I had the config file as the third option the git page suggests "%USERPROFILE%\gallery-dl.conf"
Tried another option, %USERPROFILE%\gallery-dl\config.json, and it worked right away.
Worked for both methods. (linking the cookie file / using the code I had in the first place, though with the added commas as you mentioned).
And yes, this is just the kemonoparty section of the config.

Thanks for your time and help :)

@mikf
Copy link
Owner

mikf commented Jul 23, 2021

Weird, both paths should work the same. At least you got it working.

r"%USERPROFILE%\gallery-dl\config.json",
r"%USERPROFILE%\gallery-dl.conf",

@mikf mikf closed this as completed Jul 23, 2021
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

2 participants