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

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

Open
Laydmei opened this issue Dec 4, 2018 · 11 comments
Open

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

Laydmei opened this issue Dec 4, 2018 · 11 comments
Labels
bug has PR verified Bugs that can be reproduced

Comments

@Laydmei
Copy link

Laydmei commented Dec 4, 2018

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)

@KlfJoat
Copy link

KlfJoat commented Dec 6, 2018

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.

@cebtenzzre
Copy link
Collaborator

Please see #114.

@cebtenzzre
Copy link
Collaborator

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

@bbolli bbolli changed the title How to save my likes? How to save my likes? (Download stops after 1000 likes) Dec 7, 2018
@arete06
Copy link

arete06 commented Sep 25, 2020

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

@cebtenzzre
Copy link
Collaborator

cebtenzzre commented Sep 26, 2020

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

@arete06
Copy link

arete06 commented Sep 26, 2020

@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.

@cebtenzzre
Copy link
Collaborator

@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?

@arete06
Copy link

arete06 commented Sep 26, 2020

@cebtenzzre Shares Likes: Yes [link]

@cebtenzzre cebtenzzre added bug verified Bugs that can be reproduced labels Sep 26, 2020
@cebtenzzre
Copy link
Collaborator

cebtenzzre commented Sep 26, 2020

@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.

@arete06
Copy link

arete06 commented Sep 26, 2020

<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?

@cebtenzzre
Copy link
Collaborator

@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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug has PR verified Bugs that can be reproduced
Projects
None yet
Development

No branches or pull requests

4 participants