This is a Streamlit application that allows you to fetch and transcribe the content of a YouTube video using the YouTube Data API and YouTube Transcript API.
- Extracts the video ID from a YouTube URL.
- Fetches the title and description of the YouTube video using the YouTube Data API.
- Retrieves and displays the transcript of the YouTube video.
- User-friendly interface built with Streamlit.
This project requires the following Python packages:
streamlitgoogle-api-python-clientyoutube-transcript-api
To install the necessary dependencies, create a virtual environment and install the packages from the requirements.txt file:
pip install -r requirements.txt- Obtain a YouTube Data API key by following the instructions on the Google Developers Console.
- Clone or download this repository to your local machine.
- Install the required dependencies using the command above.
- Run the Streamlit app:
streamlit run app.py- Open the application in your web browser (usually at
http://localhost:8501). - Enter your YouTube Data API key in the input field.
- Paste a valid YouTube video URL into the corresponding input field.
- Click the "Transcribe" button.
- The app will fetch the video details (title and description) and the transcript for the video, which will be displayed on the screen.
You can try using this YouTube video link as an example: