我使用Python Tweepy API开发了一个Twitter应用程序。它运作良好3个月。昨天它停止了工作。我尝试了一些调试来找到问题。我注意到,如果我减少了我遵循的单词数量,它就会开始工作。通常我只跟80个字。乳清我有这个错误吗?
这是我的错误消息:
Traceback (most recent call last):
File "murat.py", line 82, in <module>
stream.filter(track=queries)
File "/root/tas_test/tweepydll/tweepy/streaming.py", line 239, in filter
self._start(async)
File "/root/tas_test/tweepydll/tweepy/streaming.py", line 178, in _start
self._run()
File "/root/tas_test/tweepydll/tweepy/streaming.py", line 117, in _run
resp = conn.getresponse()
File "/usr/lib/python2.7/httplib.py", line 1030, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 407, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 371, in _read_status
raise BadStatusLine(line)
代码:
l = StdOutListener()
auto = OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
stream = Stream(auth, l)
stream.filter(track=track_words, follow=follow_people)
提前致谢,问候。