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

Reading all likes of user #3

Closed
nikitavoloboev opened this issue Feb 3, 2024 · 1 comment
Closed

Reading all likes of user #3

nikitavoloboev opened this issue Feb 3, 2024 · 1 comment

Comments

@nikitavoloboev
Copy link

nikitavoloboev commented Feb 3, 2024

Similar to #2

I would love to be able to get recent likes made (say last 500 likes).

I can export all data of X account and that should in theory include all likes so no need to be able to get all likes although that would be nice too. Just in my case that's more than 150,000 likes and I don't think that would work with a python client like this?

But yea, would love to be able to get likes from my account.

My use case for both this and bookmarks is that I want a reliable way to get things out from my X account (likes/bookmarks). I will be running Twikit on cron schedule (every day) to get all the latest bookmarks. Latest likes. Latests posts/replies made by me too.

@d60
Copy link
Owner

d60 commented Feb 3, 2024

To retrieve likes from a specific user, you can do it as follows:

likes = client.get_user_tweets('your user id', 'Likes')

If you wanted to get more results, you could do the following:

more_likes = likes.next()

@d60 d60 closed this as completed Feb 11, 2024
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

2 participants