Created
November 18, 2021 15:30
-
-
Save iidx/e7b2eafdc0aacd9fc7de949a4d590bb1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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