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

Tumblr downloading help using autho #7354

Open
Darkpte opened this issue Apr 12, 2025 · 1 comment
Open

Tumblr downloading help using autho #7354

Darkpte opened this issue Apr 12, 2025 · 1 comment

Comments

@Darkpte
Copy link

Darkpte commented Apr 12, 2025

AuthorizationError: This Tumblr is only viewable within the Tumblr dashboard

I got this error when trying to download from tumblr so I tried api key that I got from tumblr creating an app ( got this from guide page of gallery-dl)

but didn't work

{
    "extractor": { "twitter":
        {
            "username": null,
            "password": null,
            "base-directory": "xxxx",
            "text-tweets": true,
            "postprocessors": [
                {
                    "name": "metadata",
                    "event": "post",
                    "filename": "{author['name']}-{tweet_id}-{date:Olocal/%Y%m%d_%H%M%S}.txt",
                    "format": "{content}"
                }
            ],
            "type": 
            {
                ""                : "img",
                "bitrate==0" : "gif",
                "bitrate>0" : "vid"
            },
            "filename": {
            "locals().get('bitrate', 0) > 0": "{author['name']}-{tweet_id}-{date:Olocal/%Y%m%d_%H%M%S}-vid{num}.{extension}",
            "locals().get('bitrate') == 0"  : "{author['name']}-{tweet_id}-{date:Olocal/%Y%m%d_%H%M%S}-gif{num}.{extension}",
            ""                              : "{author['name']}-{tweet_id}-{date:Olocal/%Y%m%d_%H%M%S}-img{num}.{extension}"
    }}

    },
    "tumblr":{
        "api-key": "my key here",
        "api-secret": "my key here"
    },

    "downloader": {

    },
    "output": {

    },
    "postprocessor": {

    }

}

I get this error

[tumblr][info] Daily API rate limit exceeded
[tumblr][info] Register your own OAuth application and use its credentials to prevent this error: https://gdl-org.github.io/docs/configuration.html#extractor-tumblr-api-key-api-secret
[tumblr][error] Aborting - Rate limit will reset at 12:04:38

@mikf
Copy link
Owner

mikf commented Apr 12, 2025

The tumblr settings need to be inside the extractor block.

Fixed Config
{
    "extractor":
    {
        "twitter":
        {
            "username": null,
            "password": null,
            "base-directory": "xxxx",
            "text-tweets": true,
            "postprocessors": [
                {
                    "name": "metadata",
                    "event": "post",
                    "filename": "{author['name']}-{tweet_id}-{date:Olocal/%Y%m%d_%H%M%S}.txt",
                    "format": "{content}"
                }
            ],
            "type":
            {
                ""                : "img",
                "bitrate==0" : "gif",
                "bitrate>0" : "vid"
            },
            "filename": {
                "locals().get('bitrate', 0) > 0": "{author['name']}-{tweet_id}-{date:Olocal/%Y%m%d_%H%M%S}-vid{num}.{extension}",
                "locals().get('bitrate') == 0"  : "{author['name']}-{tweet_id}-{date:Olocal/%Y%m%d_%H%M%S}-gif{num}.{extension}",
                ""                              : "{author['name']}-{tweet_id}-{date:Olocal/%Y%m%d_%H%M%S}-img{num}.{extension}"
            }
        },

        "tumblr":{
            "api-key": "my key here",
            "api-secret": "my key here"
        }

    },

    "downloader": {

    },
    "output": {

    },
    "postprocessor": {

    }

}

Check your --verbose output for a Tumblr URL. It should say

[tumblr][debug] Using custom OAuth1.0 authentication

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