I am trying to collect tweets that should only be in the English language using the streaming API V1.1 but the language=en is not working for me.
live_stream.filter(track=keywords, follow = None, language=“en”)
gives me an error:
Traceback (most recent call last):
File “C:\Users\USER\Desktop\tutorial10.py”, line 55, in
live_stream.filter(track=keywords, follow = None, language=“en”)
TypeError: filter() got an unexpected keyword argument ‘language’
in python 2.7
can anyone help me?I am very new to this and welcome any suggestions.