I am using Tweepy Library in Python to search for tweets. I am wondering, if I can use regular expression to search Tweets.
I am using the following code :
query = 'ARNOLD or SYLVESTER'
for tweet in tweepy.Cursor(api.search,
query,
count=100,
result_type="recent",
include_entities=True,
lang="en").items():
For instance, can I search for all tweets which uses 'ARNOLD' or 'SYLVESTER' ( all capital/single word) an ignore all the other tweets.
I am currently processing the tweets after obtaining all the tweets consisting of Arnold or Sylvester and then checking if all the characters are in uppercase. I am wondering if it can be done through API search itself.
Thanks