开发者

How to see count of project downloads on GitHub? [duplicate]

This question开发者_Python百科 already has answers here: Closed 10 years ago.

Possible Duplicate:

Github: Can I see the number of downloads for a repo?

Can anybody tell where can I found the number of downloads of my project on GitHub?


You can find answer on the github support.

There are technical limitations, we tried this in the past and it had a negative impact on performance. If we find a solution, we'll re-implement it.

https://help.github.com/articles/getting-the-download-count-for-your-releases/


You can also perform this programmatically by leveraging the GitHub API. There's a whole section dedicated to the Package Download API.

Below the syntax to retrieve the list of downloads

GET /repos/:user/:repo/downloads

For instance here are the list of downloads of the libgit2 project:

  • Web: https://github.com/libgit2/libgit2/downloads
  • API: https://api.github.com/repos/libgit2/libgit2/downloads


If you archive your project and post it as a download, you can see how many times that archive has been downloaded (e.g. https://github.com/jhclark/multeval/downloads).

However, I'm not aware of any way of doing this for downloads of the entire source tree.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜