我正试图复制这个SO问题中显示的示例,但我在一个看起来像Twython
的错误中遇到了麻烦,请欣赏的任何见解
这是代码:
status_id = <some_status_id>
response = twitter.get_retweets(status_id, 100)
这导致以下错误
TypeError: get_retweets() takes 1 positional argument but 3 were given
我试着像那样不带争论地运行
response = twitter.get_retweets()
然后我从推特上收到一个错误,说
twython.exceptions.TwythonError: Twitter API returned a 404 (Not Found), Sorry, that page does not exist
这是个虫子吗?
求解后,status_id
必须作为命名参数传递
status_id = <some_status_id>
response = twitter.get_retweets(id=status_id) # 100 is already the max available