Created
November 24, 2013 19:32
-
-
Save chapmanb/7631323 to your computer and use it in GitHub Desktop.
Get download counts for GitHub releases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Get download stats for releases from GitHub. | |
Needs development version of github3. | |
pip install github3 | |
pip install git+https://github.com/sigmavirus24/github3.py.git | |
""" | |
import github3 | |
repo = github3.repository("chapmanb", "bcbio.variation") | |
for release in repo.iter_releases(): | |
for asset in release.iter_assets(): | |
print release.name, asset.name, asset.download_count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment