如何使用 tweepy 获取任何 Twitter 帐户的以下内容
how to get the followings of any twitter account using tweepy
我使用 Tweepy 已有一段时间了。我也可以通过他们的句柄名称获得一个句柄的关注者数量,但不能获得关注者数量。我正在使用 python3 和 tweepy。
谁能帮我解决这个问题?
提前致谢
试试 usr.friends_count
,其中 usr
是一个 tweepy User
对象。一个工作示例:
pub_tweets = api.home_timeline()
for tweet in pub_tweets:
print(tweet.author.friends_count)
有关 Twitter 用户对象中可用的其他信息,请参阅 https://dev.twitter.com/overview/api/users。
我使用 Tweepy 已有一段时间了。我也可以通过他们的句柄名称获得一个句柄的关注者数量,但不能获得关注者数量。我正在使用 python3 和 tweepy。 谁能帮我解决这个问题?
提前致谢
试试 usr.friends_count
,其中 usr
是一个 tweepy User
对象。一个工作示例:
pub_tweets = api.home_timeline()
for tweet in pub_tweets:
print(tweet.author.friends_count)
有关 Twitter 用户对象中可用的其他信息,请参阅 https://dev.twitter.com/overview/api/users。