def get_repositories(url, headers):
    result = []
    r = requests.get(url=url, headers=headers)
    if ('next' in r.links):
        result += get_repositories(r.links['next']['url'], headers)
    for data in r.json():
        result.append(data['name'])
    return result
def get_repositories(url, headers):
    result = []
    r = requests.get(url=url, headers=headers)
    if ('next' in r.links):
        result += get_repositories(r.links['next']['url'], headers)
    for data in r.json():
        result.append(data['name'])
    return result