GitHub

GitHub · 14 个端点

  • GitHub 仓库的文件公开 GitHub 仓库的文件,每个文件一行:单个文件,或某个目录下的所有文件(含子目录,按路径排序)。每行包含路径、ref、blob sha、字节大小、按扩展名推测的语言、is_binary、按 max_chars 截断的 UTF-8 文本(二进制文件为 null),以及 raw 与 GitHub URL。url 可以是 github.com 的 /blob/ 或 /tree/ URL、raw URL,或 owner/name(根目录);ref 与 path 会覆盖 URL 中的对应部分;max_files 限制目录的文件数。2-4 units,目录中每个文本文件再加 1。列:repository、path、ref、sha、size、language、is_binary、content、is_truncated、raw_url、url。已验证crawl4ai.github.repo.files
  • GitHub 仓库的 Issue单个 GitHub 仓库的 Issue,每个 Issue 一行:编号、标题、url、状态、作者、标签、评论数、创建与更新时间、正文前 300 个字符。`repo` 为 owner/name 或仓库 URL;`state` 可取 open、closed 或 all;`labels` 为每个 Issue 都必须带有的逗号分隔标签;`sort` 可取 created、updated 或 comments,最新的或最多的在前。GitHub 的列表也包含 Pull Request:`pull_requests` 为 true 时保留,为 false 时剔除,因此一页返回的行数可能少于 `limit`。GitHub 对未认证调用有限流:被拒绝的调用不返回任何行,只给一行警告。列:number、title、url、state、author、labels、comments、created、updated、is_pull_request、body。已验证crawl4ai.github.repo.issues

仓库资料

  • GitHub 仓库及其发布先返回单个 GitHub 仓库的信息,再返回其最新发布:第一行是仓库(星标、复刻、未关闭 Issue、语言、许可证、主题、主页、创建时间与最后推送时间),其后各行是发布(标签、发布时间、说明前 300 个字符)。`repo` 为 owner/name 或仓库 URL;`releases` 限制发布行数(0 表示不返回)。列:kind、name、url、description、stars、forks、open_issues、language、license、topics、homepage、created、pushed、archived、tag、published、notes。已验证crawl4ai.github.repo.profile
  • 按 URL 获取 GitHub 仓库 — 星标、复刻、主题获取单个 GitHub 仓库的公开元数据,包括所有者、描述、语言、星标、复刻、主题、许可证、可见性、默认分支、未关闭 Issue 与时间戳。scrapecreators.x.v1-github-repository

趋势仓库

  • GitHub:趋势仓库今日 GitHub 趋势仓库:名称、描述、语言、星标数与今日新增星标数。`since` 可取 daily、weekly 或 monthly。列:name、url、description、language、stars、forks、stars_today。已验证crawl4ai.github.trending.repositories
  • GitHub 趋势仓库 — 按语言筛选抓取 GitHub 公开的 Trending repositories 页面。scrapecreators.x.v1-github-trending-repositories