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

后端 未结 17 1090
甜味超标
甜味超标 2020-11-28 02:35

In Github, is there a way I can see the number of downloads for a repo?

17条回答
  •  野性不改
    2020-11-28 02:58

    The Github API does not provide the needed information anymore. Take a look at the releases page, mentioned in Stan Towianski's answer. As we discussed in the comments to that answer, the Github API only reports the downloads of 1 of the three files he offers per release.

    I have checked the solutions, provided in some other answers to this questions. Vonc's answer presents the essential part of Michele Milidoni's solution. I installed his gdc script with the following result

    # ./gdc stant
    mdcsvimporter.mxt: 37 downloads
    mdcsvimporter.mxt: 80 downloads
    How-to-use-mdcsvimporter-beta-16.zip: 12 downloads
    

    As you can clearly see, gdc does not report the download count of the tar.gz and zip files.

    If you want to check without installing anything, try the web page where Somsubhra has installed the solution, mentioned in his answer. Fill in 'stant' as Github username and 'mdcsvimporter2015' as Repository name and you will see things like:

    Download Info:
    mdcsvimporter.mxt(0.20MB) - Downloaded 37 times.
    Last updated on 2015-03-26
    

    Alas, once again only a report without the downloads of the tar.gz and zip files. I have carefully examined the information that Github's API returns, but it is not provided anywhere. The download_count that the API does return is far from complete nowadays.

提交回复
热议问题