subnomo / tumblr-likes

Command-line program that downloads liked posts from Tumblr.
MIT License
41 stars 4 forks source link

liked_posts is empty #3

Closed finnomenon closed 5 years ago

finnomenon commented 5 years ago

when I run tumblr-likes I get a response with values

liked_count: 21000, liked_posts: [], _links: None

so the run ends without any downloads

limits don't seem to have been reached.

"x-ratelimit-perday-remaining": "4982", "x-ratelimit-perhour-remaining": "999",

subnomo commented 5 years ago

Are your Tumblr likes set to public?

finnomenon commented 5 years ago

I am missing the option in my Dashboard settings

subnomo commented 5 years ago

It should be under your blog settings, at https://www.tumblr.com/settings/blog/<your blog name>.

finnomenon commented 5 years ago

"Share posts you like" is enabled

subnomo commented 5 years ago

Hmm, ok. Do you mind sharing the blog name so that I can test?

finnomenon commented 5 years ago

A logged in user with a different account (fresh browser) can see all entries under https://www.tumblr.com/liked/by/blogname

Is the verbose output of any help?

    status: 200,
    headers: {
        "server": "ATS",
        "date": "Sun, 09 Dec 2018 03:17:14 GMT",
        "content-type": "application/json; charset=utf-8",
        "x-content-type-options": "nosniff",
        "vary": "Accept-Encoding",
        "vary": "Accept-Encoding",
        "x-ratelimit-perday-limit": "5000",
        "x-ratelimit-perday-remaining": "4980",
        "x-ratelimit-perday-reset": "80898",
        "x-ratelimit-perhour-limit": "1000",
        "x-ratelimit-perhour-remaining": "997",
        "x-ratelimit-perhour-reset": "1764",
        "x-rid": "96mab41e0p29f",
        "strict-transport-security": "max-age=15552000",
        "p3p": "CP=\"Tumblr's privacy policy is available here: https://www.tumblr.com/policy/en/privacy\"",
        "x-ua-compatible": "IE=Edge,chrome=1",
        "public-key-pins-report-only": "max-age=2592000; pin-sha256=\"2fRAUXyxl4A1/XHrKNBmc8bTkzA7y4FB/GLJuNAzCqY=\"; pin-sha256=\"I/Lt/z7ekCWanjD0Cvj5EqXls2lOaThEA0H2Bg4BT/o=\"; pin-sha256=\"Wd8xe/qfTwq3ylFNd3IpaqLHZbh2ZNCLluVzmeNkcpw=\"; pin-sha256=\"WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18=\"; pin-sha256=\"i7WTqTvh0OioIruIfFR4kMPnBqrS2rdiVPl/s2uC/CY=\"; pin-sha256=\"r/mIkG3eEpVdm+u/ko/cwxzOMo1bk4TyHIlByibiA5E=\"; pin-sha256=\"uUwZgwDOxcBXrQcntwu+kYFpkiVkOaezL0WYEZ3anJc=\"; pin-sha256=\"dolnbtzEBnELx/9lOEQ22e6OZO/QNb6VSSX2XHA3E7A=\"; includeSubdomains; report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-hpkp-report-only\"",
        "accept-ranges": "bytes",
        "referrer-policy": "no-referrer-when-downgrade",
        "age": "0",
        "connection": "keep-alive",
        "via": "https/1.1 e14.ycpi.deb.yahoo.com (ApacheTrafficServer [cMsSf ])",
        "expect-ct": "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"",
        "x-xss-protection": "1; mode=block"
    }
}
Info: ReturnVal {
    response: Response {
        liked_count: 21673,
        liked_posts: [],
        _links: None
    }
}
Downloading likes...
Renaming files...

_______________________________________________________________________ 21673/21673
subnomo commented 5 years ago

In your browser, visit https://api.tumblr.com/v2/blog/<your blog name>/likes?api_key=<your api key>. Can you verify that liked_posts is not empty in the JSON response?

finnomenon commented 5 years ago

liked_posts remains empty {"meta":{"status":200,"msg":"OK"},"response":{"liked_posts":[],"liked_count":21673}}

Here my the setting for sharing likes

image

subnomo commented 5 years ago

Look further down in the blog settings. Is your blog marked as explicit? If it is not, and your likes contain explicit posts, then the Tumblr API won't return those posts.

finnomenon commented 5 years ago

That was the issue. Thanks!

subnomo commented 5 years ago

Glad I could help!