From 2c9bd993b69552e8f14d42cd424d9e461fd895f5 Mon Sep 17 00:00:00 2001 From: Anna Date: Mon, 12 Apr 2010 17:27:15 -0400 Subject: [PATCH] Added support in update_windows for 'user:' and #search_term... no way to actually search by these yet --- mytwitter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mytwitter.py b/mytwitter.py index 43aa359..0a004fd 100755 --- a/mytwitter.py +++ b/mytwitter.py @@ -87,6 +87,10 @@ class MyTwitter(): statuses = self.api.GetHomeTimeline(count=self.num_entries) elif list_name == '@' + self.username: statuses = self.api.GetMentions(count=self.num_entries) + elif re.search('user: ', list_name): + statuses = self.api.GetUserTimeline(re.sub('^user: ', '', list_name), count=self.num_entries) + elif re.search('#', list_name): + statuses = self.api.Search(list_name, rpp=self.num_entries) else: statuses = self.api.GetListStatuses(list_name, per_page=self.num_entries)