I'm building a bot that searches for a word in a tweet and then replies to it.
This is how far I got:
from twython import Twython
CONSUMER_KEY = ""
CONSUMER_SECRET = ""
OAUTH_TOKEN = ""
OAUTH_TOKEN_SECRET = ""
twitter = Twython(CONSUMER_KEY, CONSUMER_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
status = twitter.show_status(id="562590793391542272")
message = "hello"
twitter_id = 562590793391542272
How can I get the id of a tweet with a keyword? For example the last tweet with the word "dog" in it?
I have tried streaming/searching and everything, but nothing is working.