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.
- Extract transcripts from YouTube videos
- Save transcripts to text files in a designated folder
- Web interface for easy interaction
-
Clone the repository:
git clone https://github.com/yourusername/tubescript.git cd tubescript
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
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.
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.