I am trying to download all tweets within some co-ordinate.
Code used:
stream.statuses.filter(track='Football',locations='22,70,24,74')
How can I pass more than one track such that It will download all tweets which contains one more tracks?
For example: 'Football' or 'game' or 'sport'.
From the Twitter API, seems like you can achieve this quite easily.
You can separate it by spaces, to obtain tweets with both tracks:
stream.statuses.filter(track='Football game',locations='22,70,24,74')
Or by commas, to obtain tweets with either track:
stream.statuses.filter(track='Football, game',locations='22,70,24,74')
I think twython only passes the values of track, so this should work fine.
Hope this helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With