GithubHelp home page GithubHelp logo

daniijal / github-user-contributions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ankitsumitg/github-user-contributions

0.0 0.0 0.0 203 KB

Gets GitHub total contributions of a user profile without using github api

License: MIT License

Python 100.00%

github-user-contributions's Introduction

GitHub Contrib

  • Simple api to get GitHub user contributions ( No GitHub api key is needed ).
  • Simply use the raw Json once your username is updated. ( Typically, within a minute or so )
  • Any help/suggestions are welcome โšก ๐Ÿ‘๐Ÿป

Usage

  • Comment your username in the discussion thread
    • Format: @username
    • This is one time process only
  • Wait for the python_build workflow to complete
    • Workflow will take about 1 minute to complete
    • Your contributions will be updated once workflow completes
  • Check the end-points with your username mentioned below
  • Since the response is in json, you can use it how-ever you like it!
  • Also, your contributions will be updated every day at 00:00 UTC ๐Ÿ˜€

Endpoints

  • These are the endpoints that you can use with your username:
  • Right now response has
    • username: str
    • fullname: str
    • contributions: int
No. Endpoint Parameters Description Example
1 https://raw.githubusercontent.com/ankitsumitg/github-user-contributions/main/api/v1/username/YYYY/MM/DD.json username YYYY MM DD Contribution for a particular Day https://raw.githubusercontent.com/ankitsumitg/github-user-contributions/main/api/v1/ankitsumitg/2022/07/17.json
2 https://raw.githubusercontent.com/ankitsumitg/github-user-contributions/main/api/v1/username/YYYY/MM.json username YYYY MM Contribution for a particular Month https://raw.githubusercontent.com/ankitsumitg/github-user-contributions/main/api/v1/ankitsumitg/2022/07.json
3 https://raw.githubusercontent.com/ankitsumitg/github-user-contributions/main/api/v1/username/YYYY.json username YYYY Contribution for a particular Year https://raw.githubusercontent.com/ankitsumitg/github-user-contributions/main/api/v1/ankitsumitg/2022.json
4 https://raw.githubusercontent.com/ankitsumitg/github-user-contributions/main/api/v1/username/LASTYEAR.json username Contribution since Last Year https://raw.githubusercontent.com/ankitsumitg/github-user-contributions/main/api/v1/ankitsumitg/LASTYEAR.json
5 https://raw.githubusercontent.com/ankitsumitg/github-user-contributions/main/api/v1/username/LIFETIME.json username Contribution all Lifetime ๐Ÿ˜Ž https://raw.githubusercontent.com/ankitsumitg/github-user-contributions/main/api/v1/ankitsumitg/LIFETIME.json

Sample response for 1st example endpoint

  {
    "username": "ankitsumitg", 
    "fullname": "Ankit Gupta", 
    "contribution": 9
  }

Internal Working

  • Internally, the github-user-contributions runs a python script that crawls and scrapes the skyline-contributions from GitHub users page
  • Everything happens asynchronously
  • python_build workflow runs the script and updates the user contributions

Notes

  • If a user had not made private contributions visible on GitHub profile, then only the public contributions will be counted

License

License: MIT

Contributors

github-user-contributions's People

Contributors

ankitsumitg avatar sneazy101 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.