This project is a Python application that allows you to automatically add YouTube videos and playlists to your Notion database.
This tool simplifies the integration between YouTube and Notion, helping you keep a well-organized record of the content you've watched.
- Automatically add YouTube videos and playlists to Notion
- Save video information such as title, description, URL, and thumbnail URL
- Option to select user-defined video types
- Quickly add videos using a keyboard shortcut
- Background operation
-
Clone this repository:
git clone [https://github.com/YourUsername/YourProjectName.git](https://www.google.com/search?q=https://www.google.com/search%3Fq%3Dhttps://github.com/YourUsername/YourProjectName.git)`
-
Navigate to the project directory: Bash
cd YourProjectName
-
Create a virtual environment (recommended): Bash
python3 -m venv .venv
-
Activate the virtual environment: Bash
source .venv/bin/activate # For Linux/macOS .venv\Scripts\activate # For Windows
-
Install the required dependencies: Bash
pip install -r requirements.txt
Bash
python run.py run
This command starts the application in normal mode. You can add YouTube videos or playlists to Notion by pasting the link into the terminal.
Bash
python run.py hotkey
This command starts the application in keyboard shortcut mode. The application runs in the background, and you can add YouTube links to Notion using the Ctrl+Shift+V
shortcut. Press Ctrl+C
to terminate the application.
- Open the
config.py
file. - Enter your Notion API key in the
NOTION_API_KEY
variable. - Enter your Notion database ID in the
NOTION_PAGE_ID
variable. - Enter your YouTube Data API v3 key in the
YOUTUBE_API_KEY
variable.