我写了这个脚本:
import tweetstream
import pymongo
connection = pymongo.Connection("mongodb://localhost:27017")
db = connection.socialdata
words = ["social media", "innovation", "cloud computing"]
with tweetstream.FilterStream('username', 'password', track=words) as stream:
for tweet in stream:
db.tweets.save(tweet)
但在执行时我收到以下错误请告诉我如何删除此错误:
Traceback (most recent call last):
File "tweet.py", line 9, in <module>
with tweetstream.FilterStream(username, password, track=words) as stream:
TypeError: __init__() takes at least 5 arguments (4 given)</module>
提前致谢。