我正在使用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),是否有可能获取推文的回复计数?