I am trying to use the GitHub API to get repositories information getting it like a JSON. I use to do this, the library "requests". I want to authenticate with my account to get the rate limit 5000 request instead of 60 without authentication. The problem is that I am not sure that this solution can be secure
I am using this solution but I want to know that it is a good way to the requests or are there any better way?
url_repository = 'https://api.github.com/repos/XXXXX/YYYYY'
resp = requests.get(url=url_repository, auth=('username','token')
data = resp.json()
I expected a secure solution.