Skip to content

LadyKerr/tubescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TubeScript 📝

TubeScript is a Python application that fetches the transcript of a YouTube video and saves it to a text file. It provides both a command-line interface and a user-friendly web interface using Streamlit.

Features

  • Extract transcripts from YouTube videos
  • Save transcripts to text files in a designated folder
  • Web interface for easy interaction

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/tubescript.git
    cd tubescript
  2. Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install the required packages:

    pip install -r requirements.txt

Usage

Web Interface

Run the Streamlit app:

streamlit run tubescript/app.py

Then open your web browser and navigate to https://localhost:8501 to access the TubeScript web interface.

Command-Line Interface

To use the command-line interface, run the following command:

python tubescript/utils.py <youtube_url>

Replace <youtube_url> with the URL of the YouTube video for which you want to fetch the transcript.

License

MIT