Add delete function to tools

This commit is contained in:
Klaus-Uwe Mitterer 2015-10-10 21:15:26 +02:00
parent 671dd3b5d9
commit 3fcb87d145

View file

@ -44,6 +44,9 @@ class twObject:
self.auth.set_access_token(config.ato, config.ase)
self.api = tweepy.API(self.auth)
def delete(self, id):
self.api.destroy_status(id)
def search(self, query, savepoint = 0):
tweets = list(tweepy.Cursor(self.api.search, q=query, since_id=savepoint).items())
tweets.reverse()