千家信息网

AkShare怎样处理GitHub接口

发表于:2025-02-24 作者:千家信息网编辑
千家信息网最后更新 2025年02月24日,AkShare怎样处理GitHub接口,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。AkShare-更新记录"tool_github
千家信息网最后更新 2025年02月24日AkShare怎样处理GitHub接口

AkShare怎样处理GitHub接口,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

AkShare-更新记录
  • "tool_github_star_list" # GitHub Star 的用户
  • "tool_github_email_address" # GitHub 用户的邮箱

AkShare 工具箱

GitHub

Github Star list

接口: tool_github_star_list

目标地址: https://api.github.com/graphql

描述: 获取具体 GitHub 上某个 Repo 的 Star 用户列表

限量: 单次返回本 Repo 的所有 Star 用户,由于 API 限制,大型项目速度慢

输入参数

名称类型必选描述
wordstrYowner="PiotrDabkowski"; owner of the repo; https://github.com/PiotrDabkowski/Js2Py
indicatorstrYname="Js2Py"; repo name; https://github.com/PiotrDabkowski/Js2Py

输出参数

名称类型默认显示描述
---a list of username

接口示例




import akshare as akresult_list = ak.tool_github_star_list(owner="PiotrDabkowski", name="Js2Py")print(result_list)

数据示例


['ai-rex', 'paranoidi', 'kwcto', 'CoolOppo', ---]
Github User Email

接口: tool_github_email_address

目标地址: https://api.github.com/graphql

描述: 获取 GitHub 上用户的邮箱地址

限量: 单次返回具体用户的邮箱, 若该用户没用邮箱, 则返回空值, 注意 IP 提取限制

输入参数

名称类型必选描述
usernamestrYusername="PiotrDabkowski"; owner of the repo; https://github.com/PiotrDabkowski/Js2Py

输出参数

名称类型默认显示描述
---the email address of the user

接口示例




import akshare as akaddress = ak.tool_github_email_address(username="lateautumn4lin")print(address)

数据示例


hanqiulun1123@gmail.com

关于AkShare怎样处理GitHub接口问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注行业资讯频道了解更多相关知识。

0