problem with coding

27 views
Skip to first unread message

Colin Everiss

unread,
Feb 12, 2016, 11:25:14 AM2/12/16
to python-twitter

Hi, Any help appreciated...

 

I have been using tweepy to do some filtering. Is it possible to filter tweets using more than one keyword. For example not just "car" but say tweets with both 'car' and 'breakdown' in the tweet?? In Python, using  twitterStream.filter(track=["car","breakdown"]) then the result I get is not a tweet with both key words in it, but tweets which contain one or the other, and that is not what I am after. Any advice?

Colin


This message and its attachments are private and confidential. If you have received this message in error, please notify the sender and remove it and its attachments from your system.

The University of Westminster is a charity and a company limited by guarantee. Registration number: 977818 England. Registered Office: 309 Regent Street, London W1B 2UW.

Jeremy Low

unread,
Feb 12, 2016, 12:58:57 PM2/12/16
to python-twitter

Not at my computer right now, but I think track=["car breakdown"] should get you what you need. Twitter ignores order in such cases.


--
You received this message because you are subscribed to the Google Groups "python-twitter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-twitte...@googlegroups.com.
To post to this group, send email to python-...@googlegroups.com.
Visit this group at https://groups.google.com/group/python-twitter.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages