Random Commit using Github and Flask.

I was just playing around with Github API and implemented a minimal flask app to serve random commits.

Useful links

    Approach

    1. authenticate api
    curl -u "username" https://api.github.com
    
    2. fetch random repository
    https://api.github.com/search/repositories?q=python+language:assembly&sort=stars&order=desc
    
    3. pick any of the repo from above api and fetch random commits.
    https://api.github.com/repos/bmeaut/python_nlp_2017_fall/commits

    Enhancement

    Write a cron-job that will run everyday and store fetched commits to some json-file or db.

    Screenshot



    0 Comments:

    Post a Comment