https://github.com/dunderrrrrr/github-profile-to-json
Export your (or others) Github profile to JSON or HTML using Python3 and Jinja2.
https://github.com/dunderrrrrr/github-profile-to-json
export github html jinja jinja2 json profile python python3
Last synced: 4 months ago
JSON representation
Export your (or others) Github profile to JSON or HTML using Python3 and Jinja2.
- Host: GitHub
- URL: https://github.com/dunderrrrrr/github-profile-to-json
- Owner: dunderrrrrr
- Created: 2020-02-06T18:26:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-05T21:46:30.000Z (over 1 year ago)
- Last Synced: 2025-08-18T17:43:26.140Z (10 months ago)
- Topics: export, github, html, jinja, jinja2, json, profile, python, python3
- Language: Python
- Size: 3.09 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
github-profile-to-json
---
Export your Github profile (such as activity, repositories and profile info) to json or HTML using Python3 and Jinja2.
## Screenshot
```sh
$ python github.py -u github -o html
```

## Installation
Clone and cd into directory.
```sh
$ git clone git@github.com:dunderrrrrr/github-profile-to-json.git && cd github-profile-to-json
```
Create virtualenv and install requirements.
```sh
$ mkvirtualenv --python=/usr/bin/python3 github-profile
$ pip install -r requirements.txt
```
Copy `settings.py.sample` to `settings.py`.
```sh
$ cp settings.py.sample settings.py
$ nano settings.py
```
[Create a token](https://github.com/settings/tokens) and paste it in `settings.py`.
When generating a token, make sure you tick **repo** and **user**-boxes to give the token read-access.
## Running
### Raw JSON output
```sh
$ python github.py -u
```
### Pretty JSON output
```sh
$ python github.py -u -o pretty
```
### HTML-file output
```sh
$ python github.py -u -o html
```