youtube-video-text-summarizer

YouTube Transcript & Summary Generator

This application allows users to generate transcripts and summaries for YouTube videos by providing a video URL. It leverages the YouTubeTranscriptApi for fetching transcripts and a transformer model for summarization. Users can also download the transcript and summary as text files.


Features


Requirements


Installation and Setup

1. Clone the Repository

$ git clone <repository-url>
$ cd <repository-folder>

2. Create and Activate a Virtual Environment

$ python -m venv venv
$ source venv/bin/activate    # On macOS/Linux
$ venv\Scripts\activate      # On Windows

3. Install Dependencies

$ pip install -r requirements.txt

4. Run the Application

$ python app.py

Access the application in your browser at http://127.0.0.1:5000.


File Structure


Adding .gitignore

Ensure your .gitignore includes:

venv/
__pycache__/
*.pyc
.DS_Store

Commands to Push to GitHub

1. Initialize Git Repository

$ git init
$ git add .
$ git commit -m "Initial commit"

2. Add Remote Repository

$ git remote add origin <repository-url>
$ git branch -M main
$ git push -u origin main

  1. Go to the GitHub repository.
  2. Navigate to Settings > Pages.
  3. Under the “Source” section, select the branch (main) and folder (/ (root) or /docs if applicable).
  4. Save and GitHub Pages will provide a link to access the application.

Notes