Skip to content

Instantly share code, notes, and snippets.

@antichown
Created February 17, 2021 18:51
Show Gist options
  • Save antichown/b445f2377e2d644fbada7c0bea8b9d98 to your computer and use it in GitHub Desktop.
Save antichown/b445f2377e2d644fbada7c0bea8b9d98 to your computer and use it in GitHub Desktop.
Twitter Temizleme
import json
from dateutil.parser import parse
import tweepy
consumer_key = ''
consumer_secret = ''
access_key = ''
access_secret = ''
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_key, access_secret)
api = tweepy.API(auth)
print("Authenticated as: %s" % api.me().screen_name)
for status in tweepy.Cursor(api.user_timeline).items():
try:
api.destroy_status(status.id)
print ("Deleted:", status.id)
except:
print( "Failed to delete:", status.id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment