https://github.com/WCY-dt/my-github-2024
Statistics of your activities on GitHub in 2024. 统计2024年你在GitHub上的活动.
https://github.com/WCY-dt/my-github-2024
github github-api statistics
Last synced: 2 months ago
JSON representation
Statistics of your activities on GitHub in 2024. 统计2024年你在GitHub上的活动.
- Host: GitHub
- URL: https://github.com/WCY-dt/my-github-2024
- Owner: WCY-dt
- License: mit
- Created: 2024-12-11T09:30:56.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-12-22T06:34:51.000Z (11 months ago)
- Last Synced: 2024-12-22T07:27:05.723Z (11 months ago)
- Topics: github, github-api, statistics
- Language: Python
- Homepage: https://2024.ch3nyang.top
- Size: 1.23 MB
- Stars: 69
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Statistics of your activities on GitHub in 2024.
[简体中文](README_zh-CN.md) | English
[](https://2024.ch3nyang.top)
[](https://github.com/WCY-dt/my-github-2024/issues) [](https://github.com/WCY-dt/my-github-2024/pulls) [](https://github.com/WCY-dt/my-github-2024/blob/main/LICENSE)
👉 Try it now: https://2024.ch3nyang.top
## Example

## Usage
> [!TIP]
>
> **New feature**: Now you can select any year from 2008 to 2024 to generate a report.
1. Visit [https://2024.ch3nyang.top](https://2024.ch3nyang.top).
2. Click the `Sign in with GitHub` button and authorize login.
3. Select your time zone and the year you want to generate, then click the `Generate` button, wait a few seconds, and you can view your activities on GitHub in 2024.
## Run locally
> [!IMPORTANT]
>
> Due to the features of the `datetime` library, this project requires Python-3.12 or above.
1. Clone the repository:
```bash
git clone https://github.com/WCY-dt/my-github-2024.git
cd my-github-2024
```
2. Create a Github OAuth App:
Visit [GitHub Developer Settings](https://github.com/settings/developers) to create a new OAuth App. In it, fill in `Homepage URL` and `Authorization callback URL` with `http://127.0.0.1:5000` and `http://127.0.0.1:5000/callback` respectively.
Get `Client ID` and `Client Secret`.
3. Configure the environment variable `.env` file in the root directory of the project. The content is as follows:
```env
CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
```
4. Install dependencies:
```bash
pip install -r requirements.txt
```
5. Run the project:
```bash
python my-github-2024.py
```
6. Visit `http://127.0.0.1:5000` and complete!