Passing in filter keywords | Python Tweepy API

Viewed 37

my first post here... I'm trying to pass in multiple arguments for a Tweepy stream filter but it's pulling all tweets with ANY of these keywords. Suggestions to modify the below code to make sure pulled tweets contain ALL of these keywords? Thanks!

import tweepy
import login

exampleWords = ["Python", "Java", "C++"]

class myStream(tweepy.Stream):
    def on_status(self, status):
        print(status.text)

exampleStream = myStream(
    login.CONSUMER_KEY, login.CONSUMER_SECRET, 
    login.ACCESS_TOKEN, login.ACCESS_SECRET)

exampleStream.filter(track=exampleWords, languages=["en"])
1 Answers
Related