温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

AkShare怎样处理GitHub接口

发布时间:2021-09-13 09:20:06 来源:亿速云 阅读:196 作者:柒染 栏目:大数据

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接口问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注亿速云行业资讯频道了解更多相关知识。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI