我正试图获得GitHub公共repo的贡献者列表,保存为文本文件。
curl -H "Authorization: token mytoken" https://api.github.com/repos/v2fly/v2ray-core/contributors&per_page=100 >> output.txt
在终端中得到输出,但没有输出到文件中。而且,请求似乎没有关闭。我做错了什么?
我猜API URL是不正确的。输入"?"后需要传递per_page
querystring在URL之后,你可以试试这个
curl -H "Authorization: token mytoken" https://api.github.com/repos/v2fly/v2ray-core/contributors?per_page=100 >> output.txt