A script to add favicons to a Notion database pages (rows).
- Install Python 3.8+.
- Install dependencies with pip:
pip3 install -r requirements.txt
- Setup Integration in Notion Developer Portal.
- Go to My Integrations.
- Create a new integration.
- Select Type: Internal Integration.
- Select Associated Workspace: .
- Name: Populate Favicons.
- Upload Optional Logo.
- Copy the Integration Token.
- Add the integration to the database.
- Navigate to the database in Notion.
- Click the 3 dots, and Add Connections.
- Select the integration 'Populate Favicons'.
- Find the database ID.
- Navigate to the database in Notion.
- Note URL that should look like:
https://www.notion.so/long_hash_1?v=long_hash_2
long_hash_1
is the database ID andlong_hash_2
is the view ID.
- Create a
.env
file with the following variables (replace the values with your own):INTEGRATION_TOKEN=integration_token DATABASE_ID=database_id
- Run the script:
set -a; source .env; set +a | python3 app.py