Using Tornado + BeautifulSoup to scrape daily, weekly, and monthly GitHub contribution statistics from a user's GitHub profile page.
Deployable on Heroku and Dokku!
- TODAY: https://api-contrib-tornado.herokuapp.com/api/stats/today/droxey/
- DAILY: https://api-contrib-tornado.herokuapp.com/api/stats/daily/droxey/
- WEEKLY: https://api-contrib-tornado.herokuapp.com/api/stats/weekly/droxey/
- MONTHLY: https://api-contrib-tornado.herokuapp.com/api/stats/monthly/droxey/
git clone git@github.com:outputs-io/api-contrib-tornado
cd api-contrib-tornado
pipenv install
pipenv shell
python app.py
heroku login
heroku create my-app-name --stack=cedar
heroku addons:create mongolab
heroku config:add TZ="UTC"
git add . && git commit -m "[deploy] Pushing to Heroku."
git push heroku master
heroku ps:scale web=1
- On your remote Dokku host, run
dokku apps:create contrib-api
. - In your local repo, run
git remote add dokku ssh://dokku@YOUR_DOKKU_URL/contrib-api
to add the new remote. - Deploy by running
git push dokku master
.
contributions.py
based upon a solution by Chris Yunbin Chang for his GitHub Contributions API project.