Skip to content

Commit

Permalink
Update scrap_github_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fronchetti committed Jun 19, 2023
1 parent 47a655f commit 224968b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/scrap_github_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def request(self, url, parameters={}, headers={}, file_type='json'):

try:
session = requests.Session()
# session.auth = (os.getenv('GITHUB_USER'), os.getenv('GITHUB_TOKEN'))
session.auth = (os.getenv('fronchetti'), os.getenv('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'))
session.auth = (os.getenv('GITHUB_USER'), os.getenv('GITHUB_TOKEN'))
retries = Retry(total = 10)
session.mount('https://', HTTPAdapter(max_retries=retries))
response = session.get(url, params=parameters, headers=headers)
Expand Down

0 comments on commit 224968b

Please sign in to comment.