'Make a cursor driven call to return the list of 1 page of friends
or followers.
Args:
url:
Endpoint from which to get data. Either
base_url+\'/followers/list.json\' or base_url+\'/friends/list.json\'.
user_id:
The twitter id of the user whose followers you are fetching.
If not specified, defaults to the authenticated user. [Optional]
screen_name:
The twitter name of the user whose followers you are fetching.
If not specified, defaults to the authenticated user. [Optional]
cursor:
Should be set to -1 for the initial call and then is used to
control what result page Twitter returns.
count:
The number of users to return per page, up to a maximum of 200.
Defaults to 200. [Optional]
skip_status:
If True the statuses will not be returned in the user items.
[Optional]
include_user_entities:
When True, the user entities will be included. [Optional]
Returns:
next_cursor, previous_cursor, data sequence of twitter.User
instances, one for each follower'

def _GetFriendsFollowersPaged(self, url=None, user_id=None, screen_name=None, cursor=(-1), count=200, skip_status=False, include_user_entities=True):

    if (user_id and screen_name):
        warnings.warn('If    both    user_id    and    screen_name    are    specified,    Twitter    will    return    the    followers    of    the    user    specified    by    screen_name,    however    this    behavior    is    undocumented    by    Twitter    and    might    change    without    warning.', stacklevel=2)
    parameters = {}
    if (user_id is not None):
        parameters['user_id'] = user_id
    if (screen_name is not None):
        parameters['screen_name'] = screen_name
    try:
        parameters['count'] = int(count)
    except ValueError:
        raise TwitterError({'message': 'count    must    be    an    integer'})
    parameters['skip_status'] = skip_status
    parameters['include_user_entities'] = include_user_entities
    parameters['cursor'] = cursor
    resp = self._RequestUrl(url, 'GET', data=parameters)
    data = self._ParseAndCheckTwitter(resp.content.decode('utf-8'))
    if ('users' in data):
        users = [User.NewFromJsonDict(user) for user in data['users']]
    else:
        users = []
    if ('next_cursor' in data):
        next_cursor = data['next_cursor']
    else:
        next_cursor = 0
    if ('previous_cursor' in data):
        previous_cursor = data['previous_cursor']
    else:
        previous_cursor = 0
    return (next_cursor, previous_cursor, users)
