diff --git a/tools.py b/tools.py index da22819..1957cf4 100644 --- a/tools.py +++ b/tools.py @@ -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()