Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written this code:
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)

But on execution I am getting following error please tell me how to remove this error:
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>
Posted
Updated 10-Oct-13 3:07am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900