From 49791dce8a3173653df5446045f38274d7738cf4 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Sun, 3 Mar 2019 02:33:03 -0500 Subject: [PATCH] Fixing contributors scraping script to pull more than 30 users --- scripts/build_authors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build_authors.py b/scripts/build_authors.py index 8214b87..995a398 100755 --- a/scripts/build_authors.py +++ b/scripts/build_authors.py @@ -15,7 +15,7 @@ import requests _filepath = os.path.dirname(os.path.relpath(__file__)) FILENAME = os.path.abspath(os.path.join(_filepath, '..', 'AUTHORS.rst')) -URL = "https://api.github.com/repos/michael-lazar/rtv/contributors" +URL = "https://api.github.com/repos/michael-lazar/rtv/contributors?per_page=1000" HEADER = """\ ================ RTV Contributors @@ -44,7 +44,7 @@ def main(): resp = requests.get(contributor['url']) user = resp.json() - name = user.get('name') or user['login'] + name = user.get('name') or contributor['login'] url = user['html_url'] lines.append('* `{} <{}>`_'.format(name, url))