import tweepy
def batch(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)
for tweet in tweepy.Cursor(api.user_timeline).items():
print('Deleting: %s' % tweet.text)

Keybase proof

I hereby claim:

  • I am pe3zx on github.
  • I am pe3z ( on keybase.
  • I have a public key whose fingerprint is 9FDF 8DE2 65DE 8EE7 118E B844 858F CEFE B5ED AF65

To claim this, I am signing this object: