Skip to content

Commit

Permalink
Refresh token in loop
Browse files Browse the repository at this point in the history
  • Loading branch information
rameezk authored Sep 29, 2022
1 parent 6833035 commit a947919
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scrub.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def scrub_tweets():
)

while True:
api.refresh_token()
scrub_tweets()
print("Sleeping for 30 minutes")
time.sleep(1800) # 30 minutes

0 comments on commit a947919

Please sign in to comment.