Added support in update_windows for 'user:' and #search_term... no way to actually search by these yet
This commit is contained in:
parent
7f287e1681
commit
2c9bd993b6
|
@ -87,6 +87,10 @@ class MyTwitter():
|
||||||
statuses = self.api.GetHomeTimeline(count=self.num_entries)
|
statuses = self.api.GetHomeTimeline(count=self.num_entries)
|
||||||
elif list_name == '@' + self.username:
|
elif list_name == '@' + self.username:
|
||||||
statuses = self.api.GetMentions(count=self.num_entries)
|
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:
|
else:
|
||||||
statuses = self.api.GetListStatuses(list_name, per_page=self.num_entries)
|
statuses = self.api.GetListStatuses(list_name, per_page=self.num_entries)
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user