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)