notion-yt-sync
helps you track YouTube videos uploaded by your favorite creators in a Notion database.
I follow several YouTube channels closely, and it became challenging to track the videos I've watched and the notes I took. Since I use Notion extensively, I wanted an automated solution to manage all video uploads and track which videos I've watched, along with the corresponding notes, all in one place. So, I built notion-yt-sync
.
Go to Notion YT Sync Template and click the Duplicate
button.
Visit Notion Integrations and follow these steps:
-
Create a new internal integration.
-
Use your own Notion workspace.
-
Complete integration setup.
-
Confirm that your integration is visible on the integrations page.
- Clone the repository
git clone https://github.com/skamranahmed/notion-yt-sync
- Navigate to the repository directory
cd notion-yt-sync
- Configure the env variables
-
Ensure you are in the root directory of the project.
-
Copy the contents of the
.env.example
file to a new.env
file:
cp .env.example .env
In the .env
file, you will find two variables: NOTION_DATABASE_ID_WYNGX
and NOTION_DATABASE_ID_VERITASIUM
. Below are the steps to obtain the value for NOTION_DATABASE_ID_WYNGX
. The process is similar for the other variable and any new variable which you might add
-
Open the template page and create a new database by duplicating the existing database template.
-
A new database will be created. You can edit its name; in this case, I would rename to Wyngx YT Videos as this will store the YT videos for the Wyngx channel.
-
Copy the link of the newly created database.
-
The database ID is the portion of the URL that appears after
https://www.notion.so/
and before the?
:https://www.notion.so/YourDatabaseID?v=SomeVersionID&pvs=SomeParameter
-
Copy the database ID (denoted as
YourPageID
in the example) and paste it under theNOTION_DATABASE_ID_WYNGX
variable in the.env
file.
-
Ensure
poetry
(v1.8.4) is installedIf Poetry is not installed on your system, follow the installation guide here.
-
Install dependencies
poetry install --no-root
-
Verify Environment Setup
Ensure all required values are correctly set in the
.env
file and that the Notion setup from the previous steps is complete. -
Run the project
poetry run python main.py
-
Videos will start getting inserted in your Notion database
-
Videos successfully inserted in your Notion database
You can clone this project, customize it to fit your needs, and push it to your own GitHub repository. By default the script will run daily at midnight (00:00) via GitHub Actions.
- Write instructions to run the project via Docker
- Create a Makefile
This project is licensed under the MIT License