From 3fcb87d1453d7d8896e858ea93fa87b7ccf1731a Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Sat, 10 Oct 2015 21:15:26 +0200 Subject: [PATCH] Add delete function to tools --- tools.py | 3 +++ 1 file changed, 3 insertions(+) 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()