0
api = twitter.Api(consumer_key='aaa',consumer_secret='aaa', access_token_key='aaa', access_token_secret='aaa')

followers=api.GetFollowerIDs()

そのコードは4日前に機能していました。しかし、突然仕事をやめます。以下のエラーが発生します。私はpython-twitterを使用しています。その理由は何ですか?

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/python_twitter-1.0.1-py2.7.egg/twitter.py", line 3320, in GetFollowerIDs
    total_count -= len(data['ids'])
TypeError: unsupported operand type(s) for -=: 'NoneType' and 'int'

編集:すべてのコードは上記です。3〜4日前はコードが正しく機能していました。

EDIT2: 必要に応じて、ここからエラー行を確認できます。私はそのライブラリを使用しています。https://github.com/bear/python-twitter/blob/master/twitter.py

4

1 に答える 1