tumblr-utils icon indicating copy to clipboard operation
tumblr-utils copied to clipboard

How to save my likes? (Download stops after 1000 likes)

Open Laydmei opened this issue 6 years ago • 11 comments

Hello, I would like to save my likes from my tumblr. But when I use the command for, half of the files are saved. On 7000 posts put in favorites that 1000 are saved. Someone would know how to solve my problem? thank you in advance (Sorry for my english, it's not my native language)

Laydmei avatar Dec 04 '18 18:12 Laydmei

This tool, like all of the ones that I've found so far, uses the offset parameter. Per the Tumblr API, the offset parameter is limited to 1,000 items.

No tool I've been able to find so far will download 1) more than just images and 2) more than 1,000 likes.

KlfJoat avatar Dec 06 '18 23:12 KlfJoat

Please see #114.

cebtenzzre avatar Dec 07 '18 01:12 cebtenzzre

@Laydmei @bbolli Someone should set the title to "--likes only downloads 1000 posts".

cebtenzzre avatar Dec 07 '18 01:12 cebtenzzre

Trying with PR #114 I got the two errors. Running python2 tumblr_backup.py -l blogname I got:

Traceback (most recent call last):                                         
  File "tumblr_backup.py", line 1335, in <module>
    tb.backup(account)
  File "tumblr_backup.py", line 692, in backup
    before_timestamp = soup['response']['_links']['next']['query_params']['before']
KeyError: 'next'

Running python2 tumblr_backup.py --likes --outdir=/home/user/Documents/likes/ --save-audio -j blogname I got:

HTTP Error 404: Not Found getting https://api.tumblr.com/v2/blog/blogname.tumblr.com/likes?reblog_info=true&api_key=[MY API KEY]&limit=1

arete06 avatar Sep 25 '20 20:09 arete06

@sldx12 ~~blogname.tumblr.com shouldn't be in that URL. Did you accidentally put blogname.tumblr.com on the command line instead of blogname?~~

cebtenzzre avatar Sep 26 '20 00:09 cebtenzzre

@Cebtenzzre No, I didn't. As you can see I copy pasted the command I wrote and it's written blogname. I used the find and replace tool to change it from my real blogname so I didn't accidentally put it.

arete06 avatar Sep 26 '20 01:09 arete06

@sldx12 My bad, I forgot about the if '.' not in account: part of get_api_url. What does https://postlimit.com/ say about the blog's "Shares Likes" status?

cebtenzzre avatar Sep 26 '20 01:09 cebtenzzre

@Cebtenzzre Shares Likes: Yes [link]

arete06 avatar Sep 26 '20 02:09 arete06

@sldx12 Unfortunately, I can only reproduce the 404 if I intentionally mistype the name of a blog. If you copy <blogname>.tumblr.com/likes from the error and paste it into a web browser, and it does go to the likes page of the blog, please open a new issue for this. Also, I would like to know if this happens without --likes.

cebtenzzre avatar Sep 26 '20 03:09 cebtenzzre

<blogname>.tumblr.com/likes in the web browser asks me to login. However, I checked my account settings again and likes are public. I ran both commands withtout --likes and they seemed to work well, even though I didn't let them finish because I have a lot of posts. Do you still want me to open a new issue?

arete06 avatar Sep 26 '20 12:09 arete06

@sldx12 Yeah, open a new issue to track this, but in the new issue please tell us if any other versions/forks/commits of tumblr-utils that you've tried can back up the likes of this blog. If this is caused by API weirdness, the fix could be as simple as using cookies (my fork does this) or might require adapting OAuth support from PR #200 (if the API has decided that your likes aren't public for some reason).

cebtenzzre avatar Sep 26 '20 18:09 cebtenzzre