A script by Jina AI to show love for our GitHub contributors
This script:
- scrapes a list of contributor avatar images from all the repositories of a GitHub organization
- creates a mosaic of the images in the shape of a heart
- presents the heart and allow saving as image
- Generate a new GitHub token. Ensure read:org and read:user are checked
- Export the token as an environment variable:
export GITHUB_TOKEN=<whatever_your_token_is>
- Clone this repo:
git clone [email protected]:jina-ai/devrel-heartmaker.git
cd devrel-heartmaker
pip install -r requirements.txt
python app.py --org=<your_org_name>
- The script will take a while (the more contributors, the more time)
- A window will pop up allowing you to view and save the heart mosaic
Tweak grid_size
in app.py
There are only a finite number of ways to fill a heart. You couldn't do it with just 1 or 2 avatars without duplication after all. As long as there are gaps in the heart, they have to be filled somehow, and we do this via duplication
Change grid_size = 20
to a larger number, say grid_size = 30
(~ 150 contributors), grid_size = 40
(~ 200 contributors)