【发布时间】:2018-02-25 13:14:19
【问题描述】:
我正在使用 Python tweepy 库。
我成功地使用以下代码提取了推文的“点赞”和“转发”计数:
# Get count of handles who are following you
def get_followers_count(handle):
user = api.get_user(handle)
return user.followers_count
# Get count of handles that you are following
def get_friends_count(handle):
user = api.get_user(handle)
return user.friends_count
# Get count of tweets for a handle
def get_status_count(handle):
user = api.get_user(handle)
return user.statuses_count
# Get count of tweets liked by user
def get_favourite_count(handle):
user = api.get_user(handle)
return user.favourits_count
但是,我找不到获取特定推文回复计数的方法。
是否可以使用 tweepy 或任何其他库(如 twython 甚至 twitter4j)获取推文的回复计数?
【问题讨论】:
-
我要求您删除重复的标签,因为这个答案如果很旧
-
重新开放,但没有太大变化,我会让其他人决定保持开放或关闭。
-
这能回答你的问题吗? Replies to a particular tweet, Twitter API
-
@Zero 我认为你是对的 - 我也投票决定关闭。
标签: python twitter twitter4j tweepy twython