Skip to content

Instantly share code, notes, and snippets.

View iidx's full-sized avatar
🔍
Nyong

extr iidx

🔍
Nyong
View GitHub Profile
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'])