![]() ![]() ![]() The Github API does not provide the needed information anymore. And the release needs an asset file other than the zipped source that is added automatically in order to get the download count.I needed an actual Github release (not just git tag, even though Github does display those under releases, ugh).I got it to work with curl -H "Accept: application/3+json" You can only see if it has downloads or not. Intergrate as much pure-ruby functionality as possible ![]() Git repository in an object oriented manner - this fork tries to :description: Grit is a Ruby library for extracting information from a :parent: defunkt/grit # This repo's direct parent :source: mojombo/grit # The original repo at top of the pyramid I am not sure you can see that information (if it is recorded at all), because I don't see it in the GitHub Repository API: $ curl ( very small extract) c.setopt(c.URL, '' + full_name + '/releases') Michele Milidoni, in his (upvoted) answer, does use that field in his python script. GitHub also proposes the number of clones for repo in its Traffic Graph:Īs mentioned below by andyberry88, and as I detailed last July, GitHub now proposes releases (see its API), which has a download_count field. Githubstats0, mentioned below by Aveek Saha.įor instance, here is the number for the latest git for Windows release GitItBack (at but even that does not include the number of clones. Instead, you have to rely on third-party services like: There is no longer a traffic screen mentioning the number of repo clones. See " Get a single release", the download_count field. You still can use the GitHub API to get the download count for your releases (which is not exactly what was asked) API /repos/:owner/:repo/releases/:release_id for getting downloads number of your assets (files attached to the release), field download_count mentioned below, but, as commented, only for the most recent 30 releases.API /repos/:owner/:repo/traffic/clones, to get the total number of clones and breakdown per day or week, but: only for the last 14 days. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |