python - 如何在 python 脚本中从 Github API 检索数据?

标签 python web github

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

我会按照 Users[Num_users] = GET api.github.con/search/users 做些什么吗?

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

非常感谢!

最佳答案

为什么要自己推出?使用预建模块:

https://github.com/PyGithub/PyGithub

来自 https://developer.github.com/libraries/ 的 Python api 列表

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

关于python - 如何在 python 脚本中从 Github API 检索数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39047695/

相关文章:

github - 如何重新运行 Github Actions?

git - 如何告诉 git 为给定项目使用正确的身份(名称和电子邮件)?

python - xlsxwriter 中的日期条件格式格式化空白单元格和符合条件的单元格

python - += 运算符在 Python 中是线程安全的吗?

python - pyside2如何查询以及创建和删除动态widget

jquery - 如何添加仅在移动屏幕尺寸上显示的菜单?

ssl - 如何将 Cloudflare SSL 与 Hostinger 结合使用

ruby-on-rails - 不小心创建了一个 git 子模块

python - 在两个不同的函数中调用变量

iphone - 在 iphone/ipad 上测试本地网页