Ejemplo n.º 1
0
 def getPublicTimeline(self):
     try:
         statuses = self.api.GetPublicTimeline()
         lst = utils.getMessageList_from_statuses(statuses)
         return lst
     except URLError:
         raise TwitterError("No network")
Ejemplo n.º 2
0
 def getMyUpdates(self):
     try:
         statuses = self.api.GetUserTimeline()
         lst = utils.getMessageList_from_statuses(statuses)
         return lst
     except URLError:
         raise TwitterError("No Network")
     except HTTPError:
         raise AuthError("Authentication failed")