2016-08-19 44 views
1

我对任何类型的网络编程都很陌生,需要帮助从Github搜索API收集数据。如何从脚本内部获取https://api.github.com/search/users?q=tom+repos:%3E42+followers:%3E1000的数组?或者使用GET/search/user?如何从python脚本中的Github API检索数据?

我会根据用户[Num_users] = GET api.github.con/search/users?行来做些什么吗?

github API返回一个对象数组(我相信JSON)。

非常感谢!

+1

你在正确的轨道上,只是用这个方法,使GET请求。 http://stackoverflow.com/questions/645312/what-is-the-quickest-way-to-http-get-in-python – user3080953

回答

3

为什么要自己滚?使用预构建的模块:

https://github.com/PyGithub/PyGithub 

的Python API的名单从https://developer.github.com/libraries/

PyGithub 
Pygithub3 
libsaas 
github3.py 
sanction 
agithub 
githubpy 
octohub 
Github-Flask 
torngithub