def GetHomeTimeline(self,
                         user=None,
                         count=None,
                         since=None, 
                         since_id=None):
    if user:
      url = TWITTER_API_ROOT + 'statuses/home_timeline/%s.json' % user
    elif not user and not self._username:
      raise TwitterError("User must be specified if API is not authenticated.")
    else:
      url = TWITTER_API_ROOT + 'statuses/friends_timeline.json'
    parameters = {}
    if count is not None:
      try:
        if int(count) > 200:
          raise TwitterError("'count' may not be greater than 200")
      except ValueError:
        raise TwitterError("'count' must be an integer")
      parameters['count'] = count
    if since:
      parameters['since'] = since
    if since_id:
      parameters['since_id'] = since_id
    json = self._FetchUrl(url, parameters=parameters)
    data = simplejson.loads(json)
    self._CheckForTwitterError(data)
    return [Status.NewFromJsonDict(x) for x in data]
Fetch the sequence of twitter.Status messages for a user's friends
dataset/ETHPy150Open livid/v2ex/twitter/twitter.py/Api.GetHomeTimeline