Skip to content

Instantly share code, notes, and snippets.

@iidx
Created November 18, 2021 15:30
Show Gist options
  • Save iidx/e7b2eafdc0aacd9fc7de949a4d590bb1 to your computer and use it in GitHub Desktop.
Save iidx/e7b2eafdc0aacd9fc7de949a4d590bb1 to your computer and use it in GitHub Desktop.
import json
import twitter
api = twitter.Api(consumer_key='',
consumer_secret='',
access_token_key='',
access_token_secret='')
with open("tweet.js", encoding="utf8") as f:
tweets = json.loads(f.read())
for tweet in tweets:
api.DestroyStatus(tweet['tweet']['id'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment