Giscus—Github Rest Api for Exporting Discussions
Github 导出 Discussion 数据的示例:
- 安装 https://cli.github.com/
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 -
Read other posts