Github 导出 Discussion 数据的示例:

  1. 安装 https://cli.github.com/
  2. gh auth login
gh api --method GET '/repos/Cystee/cystee.github.io/discussions/7/comments?per_page=1000&page=1' > 1.txt
gh api --method GET '/repos/Cystee/cystee.github.io/discussions/7/comments?per_page=1000&page=2' > 2.txt
gh api --method GET '/repos/Cystee/cystee.github.io/discussions/7/comments?per_page=1000&page=3' > 3.txt

Done.

Next Page: The process of exported data.

- Total words: 45 -