debug interaction tweet search
This commit is contained in:
parent
5d570394c0
commit
08d4d66493
@ -37,10 +37,10 @@ def searchTweets(query):
|
||||
|
||||
def interactions():
|
||||
tweets = searchTweets('persevering')
|
||||
for tweet in reversed(tweets):
|
||||
if not tweets:
|
||||
print('No new tweets found.')
|
||||
return
|
||||
for tweet in reversed(tweets):
|
||||
if re.search('what is.*if not.*persevering',tweet.text.lower()):
|
||||
if not tweet.text.lower().startswith('rt') and tweet.user != api.me():
|
||||
print(f'Tweet {tweet.text} by @{tweet.author.screen_name}', flush = True)
|
||||
|
Loading…
Reference in New Issue
Block a user