API deprecation of api.me()

This commit is contained in:
Vivek Santayana 2021-11-11 10:34:02 +00:00
parent 08d4d66493
commit ff1072e243

View File

@ -42,7 +42,7 @@ def interactions():
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():
if not tweet.text.lower().startswith('rt') and tweet.user != api.verify_credentials():
print(f'Tweet {tweet.text} by @{tweet.author.screen_name}', flush = True)
t = api.get_status(tweet.id)
if not t.favorited: