requests包让Python程序能够轻松地向网站请求信息以及检查返回的响应。要安装requests,请执行类似于下面的命令:
$ pip3 install --user requests
https://api.github.com/search/repositories?q=language:python&sort=stars