Skip to content

Instantly share code, notes, and snippets.

@pditommaso
Forked from chapmanb/github_dl_stats.py
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save pditommaso/2aa2efb25becad0a2526 to your computer and use it in GitHub Desktop.

Select an option

Save pditommaso/2aa2efb25becad0a2526 to your computer and use it in GitHub Desktop.
#!/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