We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 90f9f90 + 84a858e commit e9efdb9Copy full SHA for e9efdb9
.vscode/settings.json
@@ -0,0 +1,3 @@
1
+{
2
+ "python.formatting.provider": "black"
3
+}
scrub.py
@@ -21,10 +21,15 @@ def scrub_tweets():
21
print(f"Getting tweets older than {older_than}")
22
tweets = api.get_tweets(older_than=older_than)
23
24
+ if not tweets:
25
+ print("No tweets to delete")
26
+ return
27
+
28
total_tweets = len(tweets)
29
failed_to_delete = 0
30
for count, tweet in enumerate(tweets, start=1):
31
print(f"Deleting tweet [{count}/{total_tweets}]")
32
33
try:
34
is_deleted = api.delete_tweet_by_tweet_id(tweet["id"])
35
if not is_deleted:
0 commit comments