Created
February 17, 2021 18:51
-
-
Save antichown/b445f2377e2d644fbada7c0bea8b9d98 to your computer and use it in GitHub Desktop.
Twitter Temizleme
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 | |
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