YouTube Video Summarizer is a Python project that fetches the transcript of a YouTube video, generates a summary of the transcript using the BART model from the transformers library, and writes the transcribed text and summary to separate PDF files.
The YouTube Video Summarizer project uses the youtube_transcript_api to fetch the transcript of a specified YouTube video. It then employs the transformers library, utilizing the BART model, to generate a summary of the transcript. The summarized text and the original transcribed text are written to separate PDF files using the reportlab library.
-
Clone the repository:
git clone https://github.com/your_username/YouTube-Video-Summarizer.git cd YouTube-Video-Summarizer
1.Replace your 'video_id' here with the actual YouTube video ID in the main.py file.
- Run the main.py script:
python main.py
3.The script will fetch the transcript, generate a summary, and save the results in a PDF file: "Summary.pdf" and the whole transcript in "Transcript.pdf".
Install the required dependencies:
pip install transformers youtube_transcript_api reportlab