0

我使用 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)

预先感谢,问候。

4

0 回答 0