{"id":21655807,"url":"https://github.com/hollowman6/github-contribution","last_synced_at":"2026-05-19T15:39:35.218Z","repository":{"id":105226824,"uuid":"334432427","full_name":"HollowMan6/Github-Contribution","owner":"HollowMan6","description":":octocat:  Get Contribution History on Days for Specified Github Account. (获取指定Github账户的日贡献历史)","archived":false,"fork":false,"pushed_at":"2021-01-30T14:57:48.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T06:26:08.361Z","etag":null,"topics":["contribution","github"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HollowMan6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"HollowMan6","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"custom":"https://hollowman6.github.io/fund.html"}},"created_at":"2021-01-30T14:30:14.000Z","updated_at":"2024-10-25T14:43:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1e4e127-6796-48f1-a2ae-22c94e2d83db","html_url":"https://github.com/HollowMan6/Github-Contribution","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HollowMan6%2FGithub-Contribution","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HollowMan6%2FGithub-Contribution/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HollowMan6%2FGithub-Contribution/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HollowMan6%2FGithub-Contribution/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HollowMan6","download_url":"https://codeload.github.com/HollowMan6/Github-Contribution/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244554134,"owners_count":20471173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["contribution","github"],"created_at":"2024-11-25T08:36:06.786Z","updated_at":"2026-05-19T15:39:30.181Z","avatar_url":"https://github.com/HollowMan6.png","language":"Python","funding_links":["https://github.com/sponsors/HollowMan6","https://hollowman6.github.io/fund.html"],"categories":[],"sub_categories":[],"readme":"# 获取指定Github账户的日贡献历史\n\n[![last-commit](https://img.shields.io/github/last-commit/HollowMan6/Github-Contribution)](../../graphs/commit-activity)\n![Python package](https://github.com/HollowMan6/Github-Contribution/workflows/Python%20package/badge.svg)\n\n[![Followers](https://img.shields.io/github/followers/HollowMan6?style=social)](https://github.com/HollowMan6?tab=followers)\n[![watchers](https://img.shields.io/github/watchers/HollowMan6/Github-Contribution?style=social)](../../watchers)\n[![stars](https://img.shields.io/github/stars/HollowMan6/Github-Contribution?style=social)](../../stargazers)\n[![forks](https://img.shields.io/github/forks/HollowMan6/Github-Contribution?style=social)](../../network/members)\n\n[![Open Source Love](https://img.shields.io/badge/-%E2%9D%A4%20Open%20Source-Green?style=flat-square\u0026logo=Github\u0026logoColor=white\u0026link=https://hollowman6.github.io/fund.html)](https://hollowman6.github.io/fund.html)\n[![GPL Licence](https://img.shields.io/badge/license-GPL-blue)](https://opensource.org/licenses/GPL-3.0/)\n[![Repo-Size](https://img.shields.io/github/repo-size/HollowMan6/Github-Contribution.svg)](../../archive/master.zip)\n\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/HollowMan6/Github-Contribution.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/HollowMan6/Github-Contribution/alerts/)\n[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/HollowMan6/Github-Contribution.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/HollowMan6/Github-Contribution/context:python)\n\n(English version is down below)\n\n[Python库依赖](../../network/dependencies)\n\n安装好Python3运行环境和依赖后，运行`python Github_Contribution.py`，输入Github账户信息，你就可以获得打印版的贡献信息。\n\n另外，你还可以将[Github_Contribution.py](Github_Contribution.py)放到你的项目目录下，作为包导入：\n\n```python\nfrom Github_Contribution import GithubContributions\n\nusername = input(\"Github UserID: \")\ngithub = GithubContributions(username)\n```\n\n类GithubContributions包含属性username，为用户ID；joinTime为Github账户创建日期，格式为`%Y-%m-%d`，为字符串类型；totalCount为总贡献数，整型数字；yearlyLeastContri和yearlyMaxContri分别为每年最小最大日贡献数，为字典类型，键为整型年份，值为整型的单日极值贡献数量。noContribution为list型，存放无贡献的日期；L1Contribution、L2Contribution、L3Contribution、L4Contribution分别存放第一、二、三、四级贡献的日期和具体贡献数量，为字典类型组成的list，单个字典中键date存放日期，count存放数量。\n\n**警告**：\n\n***仅供测试使用，不可用于任何非法用途！***\n\n***对于使用本代码所造成的一切不良后果，本人将不负任何责任！***\n\n# Get Contribution History on Days for Specified Github Account\n\n[Python Dependencies](../../network/dependencies)\n\nAfter installing the running environment and dependencies of Python3, run `python Add_Github_Contribution_History.py`, enter your Github user ID, you can get printed version of your contribution history on days.\n\nIn addition, you can put [Github_Contribution.py](Github_Contribution.py) in your project directory and import it as a package:\n\n```python\nfrom Github_Contribution import GithubContributions\n\nusername = input(\"Github UserID: \")\ngithub = GithubContributions(username)\n```\n\nThe class `GithubContributions` contains the attribute `username`, which is the user ID; `joinTime`, which is the creation date of GitHub account, in the format of `%Y-%m-%d`, which is the string type; `totalCount`, which is the total number of contributions in integer number; `yearlyLeastContri` and `yearlyMaxContri`, which separately stores the minimum and maximum daily number of contributions each year, and which is the dictionary type; the key, which is the integer year, and the value is the single day extreme number of contributions. `noContribution` is a list type, which stores the date of no contribution; `L1Contribution`, `L2Contribution`, `L3Contribution` and `L4Contribution` store the date and specific contribution quantity of the first, second, third and fourth level contribution respectively, which is a list of dictionary types, and in a single dictionary key date stores the date and count stores the quantity.\n\n**Warning**:\n\n***For TESTING ONLY, not for any ILLEGAL USE!***\n\n***I will not be responsible for any adverse consequences caused by using this code.***\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhollowman6%2Fgithub-contribution","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhollowman6%2Fgithub-contribution","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhollowman6%2Fgithub-contribution/lists"}