如何通过 tweepy 获取推文的点赞数?
How do I get the number of likes on a tweet via tweepy?
我有一条 tweepy 推文 object 我可以看到并打印它的 favorite_count
和 retweet_count
但是当我打印成员变量时我没有看到 like_count
的 object。知道收藏夹的数量似乎与使用推文的典型用例无关,因为在 Twitter 上喜欢某些东西比喜欢它更常见。
我可以做这样的事情:
api = tweepy.API(auth)
tweet = api.get_status(tweet_id)
print(tweet.retweet_count)
print(tweet.favorite_count)
但正在做
print(tweet.like_count)
不起作用,我看不到任何替代方案。此外,当我 google 之类的东西 "tweepy get like count of a tweet" 时,不会弹出任何相关内容,这看起来很奇怪。我该怎么做?
收藏和喜欢是一样的。没有区别。在 Twitter 上点击一颗心会增加收藏数量。
https://twittercommunity.com/t/hearts-and-likes-are-live/55642
我有一条 tweepy 推文 object 我可以看到并打印它的 favorite_count
和 retweet_count
但是当我打印成员变量时我没有看到 like_count
的 object。知道收藏夹的数量似乎与使用推文的典型用例无关,因为在 Twitter 上喜欢某些东西比喜欢它更常见。
我可以做这样的事情:
api = tweepy.API(auth)
tweet = api.get_status(tweet_id)
print(tweet.retweet_count)
print(tweet.favorite_count)
但正在做
print(tweet.like_count)
不起作用,我看不到任何替代方案。此外,当我 google 之类的东西 "tweepy get like count of a tweet" 时,不会弹出任何相关内容,这看起来很奇怪。我该怎么做?
收藏和喜欢是一样的。没有区别。在 Twitter 上点击一颗心会增加收藏数量。
https://twittercommunity.com/t/hearts-and-likes-are-live/55642