Skip to content

GuisandeGolfer/youtube_summary_py

Repository files navigation

AI YouTube FOMO Utility

TLDR;

give this script a link to a YouTube video, and it will ask ChatGPT for detailed summary of the video. Saving you the time of actually watching it.

Steps Completed so Far:

  1. recieve link to youtube video.
  2. download youtube video audio.
  3. transcribe audio file through OpenAI library API call.
  4. send a prompt to ChatGPT with transcription of content.
  5. Create a new repo and a read-me with a video that explains how it works.
  6. getting an error while using py-tube (only workarounds on StackOverflow)
    • switch the script from using pytube and use yt-dlp python lib instead.

Things to improve later on:

  1. since the api key is being loaded in from password-store, I may have to enter the encryption key after time passes
    • made a .env file with my API key hard-coded
  2. maybe add an ASCII moving loading screen while the API calls are happening?
    • some kind of fun animation
    • found a cool animation library and working on implementing for API calls, and yt-dlp.
    • added a tqdm progress bar for yt-dlp and openAI calls
  3. create a chrome extension for this?
    • Youtube AI summarizer
  4. or make a website that has a one-time payment for a license to use a web interface that stores their summaries, "watch" history, and all they need is a one-time payment of $50 (rate limit API calls and do cost analysis).
  5. buy ShipFast as a template for releasing the SaaS. ($169 - $199)
  6. have the option to give it a youtube playlist, and iterate the process of summarizing videos - maybe create a playlist mega-summary.

How to Use after Cloning Repo


  1. Create a virtual environment
python3 -m venv <insert-virtual-env-name-here>
  1. Activate virtual environment
source <path-to-activate-file-in-project-dir>
  1. Replace hard coded folder paths inside of main.py
  • on lines: 10, 62, 107

  • you may also need to create an audio directory to save your mp3 files if you want them.

  1. Install dependencies & run main.py
pip install requirements.txt && python3 main.py

About

script that recieves a YouTube url, and uses ChatGPT to create a summary inside your Obsidian Vault

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages