我不断从 TweetStream 1.1.1 收到此异常,“exception.code == 404:uthenticationError("Access denied")" 它上周有效,但现在无效。我尝试了不同的用户名和密码。我可以使用我的帐户信息登录 Twitter。我什至删除并重新安装了模块。是什么赋予了?谢谢您的帮助!
我尝试运行这个...
import tweetstream
stream = tweetstream.SampleStream("MY_USERNAME", "MY_PASSWORD")
for tweet in stream:
print tweet
错误实际上如下所示:
Traceback (most recent call last):
File "<pyshell#28>", line 1, in <module>
for tweet in stream:
File "C:\Python27\lib\site-packages\tweetstream-1.1.1-py2.7.egg\tweetstream\streamclasses.py", line 165, in __iter__
self._init_conn()
File "C:\Python27\lib\site-packages\tweetstream-1.1.1-py2.7.egg\tweetstream\streamclasses.py", line 103, in _init_conn
raise AuthenticationError("Access denied")
AuthenticationError: Access denied