def getPublicTimeline(self): try: statuses = self.api.GetPublicTimeline() lst = utils.getMessageList_from_statuses(statuses) return lst except URLError: raise TwitterError("No network")
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")