tumblr / pytumblr

A Python Tumblr API v2 Client
Apache License 2.0
723 stars 196 forks source link

TypeError: likes() takes 1 positional argument but 2 were given for .likes() #105

Closed aauss closed 5 years ago

aauss commented 6 years ago

Using client.likes({'offset': 20, 'limit': 20}) is giving me an error, that 2 positional arguments were given. I cannot figure how to change the limit of the returned likes. Furthermore, the returned amount of likes should be 20. Somehow for me it is two.

Thanks for you help in advance.

jasonpenny commented 6 years ago

The likes function expects keyword-args, so it should be client.likes(offset=20, limit=20)

aauss commented 6 years ago

Thank you very much. I probably should have known better.

Still, although I have over 6000 likes, executing this command in the interactive command line only returns two of my likes.

wyfwyf112 commented 6 years ago

It seems the likes function only returns the latest 1000 likes.

aauss commented 6 years ago

It should, but for me it only returns the last two :(

aauss commented 5 years ago

It should, but for me it only returns the last two :(

After some time not touching the project, it worked again. Don't know what was the problem. Thanks for the help!