This is a Streamlit application that extracts transcripts from YouTube videos using the youtube_transcript_api. The app supports both manually generated and auto-generated transcripts and allows users to select their preferred language for the transcript. An embedded YouTube player displays the video alongside the transcript.
- Video ID Extraction: Recognizes multiple YouTube URL formats and extracts the video ID.
- Transcript Retrieval: Fetches the transcript using the YouTube Transcript API.
- Language Selection: Lists available transcript languages for selection.
- Embedded Video Playback: Displays the YouTube video in an embedded player.
- Custom Styling: Provides a clean and modern interface with custom CSS styling.
Follow these steps to run the application locally:
-
Clone the repository:
git clone https://github.com/UKR-PROJECTS/Streamlit-SSTranscript.git cd Streamlit-SSTranscript
-
(Optional) Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
Launch the application using Streamlit by running:
streamlit run app.py
The app should automatically open in your default web browser. If not, navigate to the provided local URL (usually http://localhost:8501
).
- app.py: Main Streamlit application script containing the application logic.
- requirements.txt: Lists project dependencies (e.g.,
streamlit
andyoutube_transcript_api
). - README.md: Documentation file (this file).
- .gitignore: Specifies intentionally untracked files to ignore (such as virtual environment folders, cache, etc.).
The project requires the following Python packages:
You can install them using:
pip install streamlit youtube_transcript_api
Or by running:
pip install -r requirements.txt
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Streamlit for the web application framework.
- youtube_transcript_api for transcript retrieval functionality.
- Thanks to the contributors and the open-source community for their continued support.