所以我只是想运行一个tweepy脚本来收集tweets。 我已经设置了数据库,但现在遇到了一个错误。在
Starting...
Started user: user1
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "build/bdist.macosx-10.6-intel/egg/tweepy/streaming.py", line 414, in filter
self.body['follow'] = u','.join(follow).encode(encoding)
TypeError: sequence item 0: expected string or Unicode, int found
编辑:脚本实际上使用的是:from urllib import urlencode_noplus,但是_noplus不在urllib中,这就是为什么我只是从代码中删除了它。虽然我怀疑这是导致错误的原因。。在
^{pr2}$
目前没有回答
相关问题 更多 >
编程相关推荐