Get summaries of your favorite YouTube videos and import them directly to your Obsidian vault!
- Save your OpenAI API key to your environment as 
OPENAI_API_KEY - Simply open your terminal (Ctrl + Alt + T)
 - Activate the 
venv - Run the command 
python main.py your_youtube_link 
- Ex. 
python main.py https://www.youtube.com/watch?v=dQw4w9WgXcQ 
- Use 
python main.py {your video link} --question "put question in quotations"to query the video data in a specific way. 
- You'll need to update the following variables in 
main.pybefore running the script:GRAVEYARD: if you want to keep the vtt files from your videos, this is where they'll be savedOBS_ZK: This is the location that you'll deposit your summaries in Obsidian
 
To run ytsum from anywhere on your system:
- Make the wrapper script executable: 
chmod +x ytsum - Create a symlink to a directory in your PATH: 
ln -s $(pwd)/ytsum ~/.local/bin/ytsum - Now you can run 
ytsum <youtube_url>from anywhere!