基本上,当我在Twitter上看到我知道“喜欢”的tweets,并打印出它们的favorite count属性时,计数总是0。favorite count与likes数量不一样/为什么favorite count总是0/我如何获得一条微博的赞数?在
现在我要做的是:
print(the_tweet.favorite_count)
打印时:
^{pr2}$
我看到很多与tweet有关的东西,包括retweet_count和favorite_count,但没有什么东西看起来像是“like_count”。在
Tags:
我只是用这个为我工作。我也遇到了同样的问题,因为我使用的是'tweepy',它在json api中为favorite_count返回两个值,一个值正确,另一个值为“0”。当您使用'Twython'时,它只返回一个值,即第一个值。在
这个解决方案的一部分是在这种松弛:Twitter API - get tweets with specific id
相关问题 更多 >
编程相关推荐