diff --git a/tweet_havester/tweepy_stream.py b/tweet_havester/tweepy_stream.py index 45fe45c153c1d2e0da175e9156d4eec62161dbc0..7087200abd534ddfdb9befbec6f5625843931007 100644 --- a/tweet_havester/tweepy_stream.py +++ b/tweet_havester/tweepy_stream.py @@ -35,7 +35,6 @@ class listener(StreamListener): content = json.loads(data) dic = self.convertValue(content) id_doc = {"_id":str(dic["user_id"]),"user_name":content['user']['name'],"isSearched":False} - print(id_doc) p_dic = gp.data_process(dic,self.model) if p_dic != None: process_db.save(p_dic) diff --git a/tweet_havester/tweet_havester.py b/tweet_havester/tweet_havester.py index 5caf3d60a1fb5d2a1a4169d52996e35b3caf3f55..bbba55a11afeb97a4bffcbaba63f727fade62498 100644 --- a/tweet_havester/tweet_havester.py +++ b/tweet_havester/tweet_havester.py @@ -11,6 +11,8 @@ if __name__ == "__main__": username = a[2] password = a[3] server_path = 'http://' + username +':' + password +'@'+ip+':5984/' + else: + server_path = 'http://'+a[1] tStream.run(server_path) # wait for streamming for a while to start searching # time.sleep(200)