GitHub Starred Repos Exporter

导出指定用户的 Star 仓库列表及 Readme,生成 CSV。使用 API 获取列表,HTML 抓取内容以避开 API 限制。

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
black-zero358
Installationen heute
0
Installationen gesamt
2
Bewertungen
0 0 0
Version
1.3
Erstellt am
28.01.2026
Letzte Aktualisierung
28.01.2026
Größe
9,71 KB
Lizenz
AGPLv3
Wird angewandt auf

📦 GitHub Starred Repos Exporter

一个用于 导出任意 GitHub 用户 Star 仓库列表 的实用脚本,可一键生成包含仓库信息与 Readme 内容的 CSV 文件,方便本地整理、分析或二次处理。


✨ 功能特性

  • 导出指定用户的所有 Star 仓库
  • 📄 自动抓取仓库 Readme 内容(无需消耗 API Readme 配额)
  • 📊 生成 CSV 文件,可直接用 Excel / LibreOffice / Pandas 打开
  • 🚀 支持并发抓取,在速度与稳定性之间取得平衡
  • 🧠 智能避开 GitHub API Rate Limit

    • 仓库列表:使用官方 GitHub API
    • Readme 内容:通过 HTML 页面解析获取
  • 🧩 无需 Token / 无需登录(已登录效果更佳)


📌 导出内容包含

每个仓库将导出以下字段:

  • Repository Name(完整仓库名)
  • URL(仓库地址)
  • Description(仓库描述)
  • Readme Content(Readme 纯文本内容,最多 5000 字)

🖱 使用方式

  1. 打开任意 GitHub 页面(github.com
  2. 点击右下角 「📥 导出 Star 数据」 按钮
  3. 输入要导出的 GitHub 用户名
  4. 等待抓取完成,自动下载 CSV 文件

⚙ 可选配置(脚本内)

const CONFIG = {
  concurrency: 4,        // 并发抓取数量(建议 3–5)
  includeReadme: true    // 是否抓取 Readme
};
  • 如果你只需要仓库列表,可将 includeReadme 设为 false,速度会非常快
  • 并发过高可能触发 GitHub 的 429 限制,请酌情调整

⚠ 注意事项

  • 未登录状态下 GitHub API 有 60 次/小时 限制
  • Readme 为 HTML 渲染后的纯文本,不是原始 Markdown
  • Readme 内容长度已限制,防止 CSV 文件过大
  • 适合个人整理、学习研究,请勿滥用请求频率

📜 许可证

  • AGPL-3.0