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

[Site Request] derpibooru.org #862

Closed
3k2 opened this issue Jun 29, 2020 · 14 comments
Closed

[Site Request] derpibooru.org #862

3k2 opened this issue Jun 29, 2020 · 14 comments

Comments

@3k2
Copy link

3k2 commented Jun 29, 2020

Hey

would be nice to have derpibooru support please :)

@Twi-Hard
Copy link

They have an API https://derpibooru.org/pages/api

@3k2
Copy link
Author

3k2 commented Oct 6, 2020

how's this going?

@marius851000
Copy link

I need something like that. I'll try to work on that, but I don't have any experience with gallery-dl (althougt I did some stuff on youtube-dl).

@ghost
Copy link

ghost commented Dec 5, 2020

how's this going?

There's a dedicated downloader for that.

@rautamiekka
Copy link
Contributor

how's this going?

There's a dedicated downloader for that.

Not an option since it's Window$-only, and graphical.

@Hrxn
Copy link
Contributor

Hrxn commented Jan 3, 2021

Is philomena actually any good?

@rautamiekka
Copy link
Contributor

rautamiekka commented Jan 3, 2021

^ Seems that way; I've used https://github.com/mcilya/DBooru to get my likes/favs, which uses the API, and it works perfectly. Don't bother with https://github.com/joshua-stone/DerPyBooru unless you're using it to code your own Derpibooru Client, it's only an API wrapper.

Although, it doesn't support URL's, only keywords and likes/favs, via a very hardcoded TUI.

(Philomena's problem's it's hardcoded for PostgreSQL, the way I understand, but shouldn't be much of a problem to modify for MariaDB.)

@mikf
Copy link
Owner

mikf commented Jan 7, 2021

fa8ee6e adds initial support for general searches, galleries, and single images.

By default it uses the site's "Default" filter (should it use the "Everything" filter or similar instead?), but it is possible to set an API key or an explicit filter ID to change that.

Let me know what else would be useful to have, and any other potential improvements like for instance default file names.

@3k2
Copy link
Author

3k2 commented Jan 13, 2021

fa8ee6e adds initial support for general searches, galleries, and single images.

By default it uses the site's "Default" filter (should it use the "Everything" filter or similar instead?), but it is possible to set an API key or an explicit filter ID to change that.

Let me know what else would be useful to have, and any other potential improvements like for instance default file names.

what am I doing wrong here I can just download SFW content even tho I have set my API key?

I made new line to my gallery-dl.conf like this

        "derpibooru":
        {
            "extractor.derpibooru.filter": "56027",
            "extractor.derpibooru.api-key": "API-key"
        },

I tried with everything filter only and only API-key but no difference.

@mikf
Copy link
Owner

mikf commented Jan 13, 2021

It's only "api-key" and "filter", inside "derpibooru", inside "extractor", hence extractor.derpibooru.filter in the docs:

        "derpibooru":
        {
            "filter": "56027",
            "api-key": "API-key"
        },

@3k2
Copy link
Author

3k2 commented Jan 13, 2021

It's only "api-key" and "filter", inside "derpibooru", inside "extractor", hence extractor.derpibooru.filter in the docs:

        "derpibooru":
        {
            "filter": "56027",
            "api-key": "API-key"
        },

hmm I did this but it still seems to be only downloading SFW content not sure what's going on.

 gallery-dl -v --no-download -d /mnt/yiffyraid/Yiffer/Albums/ https://derpibooru.org/search\?q\=faved_by_id%3A454599
[gallery-dl][debug] Version 1.16.3
[gallery-dl][debug] Python 3.9.1 - Linux-5.10.6-zen1-1-zen-x86_64-with-glibc2.32
[gallery-dl][debug] requests 2.25.1 - urllib3 1.26.1
[gallery-dl][debug] Starting DownloadJob for 'https://derpibooru.org/search?q=faved_by_id%3A454599'
[derpibooru][debug] Using DerpibooruSearchExtractor for 'https://derpibooru.org/search?q=faved_by_id%3A454599'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): derpibooru.org:443
[urllib3.connectionpool][debug] https://derpibooru.org:443 "GET /api/v1/json/search/images?q=faved_by_id%3A454599&page=1&per_page=50 HTTP/1.1" 200 None

I tried another gallery with only nsfw content here's the result

➜ gallery-dl -v --no-download -d /mnt/yiffyraid/Yiffer/Albums/ https://derpibooru.org/galleries/11761
[gallery-dl][debug] Version 1.16.3
[gallery-dl][debug] Python 3.9.1 - Linux-5.10.6-zen1-1-zen-x86_64-with-glibc2.32
[gallery-dl][debug] requests 2.25.1 - urllib3 1.26.1
[gallery-dl][debug] Starting DownloadJob for 'https://derpibooru.org/galleries/11761'
[derpibooru][debug] Using DerpibooruGalleryExtractor for 'https://derpibooru.org/galleries/11761'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): derpibooru.org:443
[urllib3.connectionpool][debug] https://derpibooru.org:443 "GET /api/v1/json/search/galleries?q=id%3A11761 HTTP/1.1" 200 None
[derpibooru][debug] Sleeping for 0.999 seconds
[urllib3.connectionpool][debug] https://derpibooru.org:443 "GET /api/v1/json/search/images?sd=desc&sf=gallery_id%3A11761&q=gallery_id%3A11761&page=1&per_page=50 HTTP/1.1" 200 41

@mikf
Copy link
Owner

mikf commented Jan 13, 2021

Maybe gallery-dl isn't automatically loading your config file because it's not at the right location?

Try using --config /path/to/your/config.file and see if that helps.
You can also set the filter value with -o filter=56027. This would also work for api-key, but pasting that value to the cmdline might be a bit too unwieldy.

Going back to my question from before: Would it be better to use the "Everything" filter or similar by default?

@3k2
Copy link
Author

3k2 commented Jan 13, 2021

Maybe gallery-dl isn't automatically loading your config file because it's not at the right location?

Try using --config /path/to/your/config.file and see if that helps.
You can also set the filter value with -o filter=56027. This would also work for api-key, but pasting that value to the cmdline might be a bit too unwieldy.

Going back to my question from before: Would it be better to use the "Everything" filter or similar by default?

yes it should use by default "Everything"

for some reason it is not reading the config file correclty even tho when I directly do --config command to the file it seems to ignore the filter and api-key values? not sure what's going on.

@mikf
Copy link
Owner

mikf commented Jan 17, 2021

yes it should use by default "Everything"

01b9ccd

for some reason it is not reading the config file correclty even tho when I directly do --config command to the file it seems to ignore the filter and api-key values? not sure what's going on.

Hard to tell without seeing your config as a whole, but the following works as a minimal example:

{
    "extractor": {
        "derpibooru": {
            "filter": 12345
        }
    }
}
$ gallery-dl -v --ignore-config -c config.json https://derpibooru.org/tags/TAG
[urllib3.connectionpool][debug] https://derpibooru.org:443 "GET /api/v1/json/search/images?q=TAG&page=1&per_page=50&filter_id=12345 HTTP/1.1" 200 None

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

6 participants