To use this just do:
from tldw import tldw
import os
summary = tldw(os.environ.get('OPENAI_API_KEY'))
summary.summarize('https://www.youtube.com/watch?v=LCEmiRjPEtQ')
I was originally inspired by a post I saw here: https://news.ycombinator.com/item?id=44376989, so I decided to make a more automated version of this.I originally tried building this as a web application for better user experience, but retrieving YouTube subtitles from cloud provider IP ranges isn't trivial. It would require residential proxies, which was out of scope for a hobby project cost-wise.
Let me know what your thoughts are, feedback is a gift!