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

hidden tumblr ? #145

Closed
wankio opened this issue Dec 26, 2018 · 6 comments
Closed

hidden tumblr ? #145

wankio opened this issue Dec 26, 2018 · 6 comments

Comments

@wankio
Copy link
Contributor

wankio commented Dec 26, 2018

I saw Hrxn say hidden tumblr worked with old api/secret but when i'm test it, nothing found
#65

@Hrxn
Copy link
Contributor

Hrxn commented Dec 26, 2018

with old api/secret

What do you mean with old here? I can only confirm that, given proper OAuth settings for Tumblr in gallery-dl.conf, using gallery-dl with a hidden/dashboard-only Tumblr blog did indeed work. Even beyond the 17th December.

But it's entirely possible that this has changed in the last couple days. This is all uncharted territory now with Tumblr.

When I am back at my real PC I can try this again, unless the few hidden blogs I knew haven't been deleted by their owners in the meanwhile. In that case, an example link would probably help.

@mikf
Copy link
Owner

mikf commented Dec 26, 2018

I created a hidden/private Tumblr blog for testing purposes: https://mikf123-private.tumblr.com/
Password is foobar.

On my end everything works as it should:

$ gallery-dl https://mikf123-private.tumblr.com/
[tumblr][error] You do not have permission to access the resource at 'https://mikf123-private.tumblr.com/'

$ gallery-dl oauth:tumblr
Please open this URL in your browser:
https://www.tumblr.com/oauth/authorize?oauth_token=BLnSySDTnSamfaAy9Oe0SxaRu6A0bY1DwZUWin32hvaGUxzUmS&perms=read

Waiting for response. (Cancel with Ctrl+c)

Your Access Token and Access Token Secret are

ptZCRr9GJTssrBoOPGp6XK5zcqyqxsBKf4Y4Lx9gvxUuktvRJk
yGP1ijIij5uHkGCfDw84YXLwNwwZqK7XbVExu75YEF7KaYeJkZ

Put these values into your configuration file as
'extractor.tumblr.access-token' and
'extractor.tumblr.access-token-secret'.

Example:
{
    "extractor": {
        "tumblr": {
            "access-token": "ptZCRr9GJTssrBoOPGp6XK5zcqyqxsBKf4Y4Lx9gvxUuktvRJk",
            "access-token-secret": "yGP1ijIij5uHkGCfDw84YXLwNwwZqK7XbVExu75YEF7KaYeJkZ"
        }
    }
}

# access-token and -secret gets added to config file ...

$ gallery-dl https://mikf123-private.tumblr.com/
/tmp/tumblr/mikf123-private/tumblr_mikf123-private_181426988723_01.png

The account you are creating the access-token and -secret for must have access to the hidden blog you want to access. I had another token-secret-pair for some test-account set when I tried it the first time and, as you can see, it didn't work.

@wankio
Copy link
Contributor Author

wankio commented Dec 28, 2018

oh, i'm sorry, it's private tumblr
peripei.tumblr.com -> https://www.tumblr.com/dashboard/blog/peripei

@mikf
Copy link
Owner

mikf commented Dec 28, 2018

But https://peripei.tumblr.com/ works perfectly fine if you have an access token and secret set:

# empty access token
$ gallery-dl https://peripei.tumblr.com/ -o access-token=  
[tumblr][error] The user or post at 'https://peripei.tumblr.com/' does not exist

# valid access token and secret set in config
$ gallery-dl https://peripei.tumblr.com/  
/tmp/tumblr/peripei/tumblr_peripei_181342185642_01.jpg
/tmp/tumblr/peripei/tumblr_peripei_179717409887_01.jpg
/tmp/tumblr/peripei/tumblr_peripei_176752497597_01.jpg
/tmp/tumblr/peripei/tumblr_peripei_174826348597_01.jpg

@wankio
Copy link
Contributor Author

wankio commented Dec 29, 2018

oh sorry, once again i'm just forgot it (access token not api), every worked now :). I still remember flickr issue when u told me about access-token. THANK 👍

@Hrxn
Copy link
Contributor

Hrxn commented Dec 29, 2018

Can confirm that URL is working for me as well..

And FYI, a password-protected blog and a hidden/dashboard-only blog are two different things. I think you can do both at the same time, but I've never seen one in the wild.

@mikf mikf closed this as completed Jan 1, 2019
mikf added a commit that referenced this issue Jan 3, 2019
Hidden / dashboard-only blogs are pretty straightforward and "only"
require a valid 'access-token' and 'access-token-secret' for the given
'api-key' and 'api-secret', so that signed OAuth1.0 requests are possible.

Private / password protected blogs on the other hand are a bit
cumbersome. In addition to a valid 'access-token' and
'access-token-secret', they also require the account belonging to those
tokens to be a member of the blog itself. Knowing the password and
entering it in the website isn't enough to access a blog through the
API. Following a private blog is also impossible, so that option can't
work either.
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

3 participants