我正在嘗試獲取公共 GitHub 存盤庫的貢獻者串列,并保存為文本檔案。
curl -H "Authorization: token mytoken" https://api.github.com/repos/v2fly/v2ray-core/contributors&per_page=100 >> output.txt
我在終端中得到輸出,但沒有到檔案中。此外,請求似乎沒有關閉。我究竟做錯了什么?
uj5u.com熱心網友回復:
我猜 API URL 不正確。per_page輸入“?”之后需要傳遞該查詢字串。在 URL 之后,你可以試試這個
curl -H "Authorization: token mytoken" https://api.github.com/repos/v2fly/v2ray-core/contributors?per_page=100 >> output.txt
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/475324.html
