API deprecation of api.me()
This commit is contained in:
parent
08d4d66493
commit
ff1072e243
@ -42,7 +42,7 @@ def interactions():
|
|||||||
return
|
return
|
||||||
for tweet in reversed(tweets):
|
for tweet in reversed(tweets):
|
||||||
if re.search('what is.*if not.*persevering',tweet.text.lower()):
|
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)
|
print(f'Tweet {tweet.text} by @{tweet.author.screen_name}', flush = True)
|
||||||
t = api.get_status(tweet.id)
|
t = api.get_status(tweet.id)
|
||||||
if not t.favorited:
|
if not t.favorited:
|
||||||
|
Loading…
Reference in New Issue
Block a user