🍲 Use Tornado + BeautifulSoup to scrape daily, weekly, and monthly GitHub contribution statistics from a user's GitHub profile page. Deployable on Heroku + Dokku!
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
.gitignore
Pipfile
Pipfile.lock
Procfile
README.md
app.py
contributions.py
index.html

README.md

api-contrib-tornado

Using Tornado + BeautifulSoup to scrape daily, weekly, and monthly GitHub contribution statistics from a user's GitHub profile page.

Deployable on Heroku and Dokku!

Test URLs

Installation

  1. git clone git@github.com:outputs-io/api-contrib-tornado
  2. cd api-contrib-tornado
  3. pipenv install
  4. pipenv shell
  5. python app.py

Deployment via Heroku

  1. heroku login
  2. heroku create my-app-name --stack=cedar
  3. heroku addons:create mongolab
  4. heroku config:add TZ="America/Los_Angeles"
  5. git add . && git commit -m "[deploy] Pushing to Heroku."
  6. git push heroku master
  7. heroku ps:scale web=1

Deployment via Dokku

  1. On your remote Dokku host, run dokku apps:create contrib-api.
  2. In your local repo, run git remote add dokku ssh://dokku@YOUR_DOKKU_URL/contrib-api to add the new remote.
  3. Deploy by running git push dokku master.

Known Issues

  1. Data served in PST -- needs to be timezone-agnostic.

Special Thanks

contributions.py based upon a solution by Chris Yunbin Chang for his GitHub Contributions API project.