This project provides a simple Flask API to fetch and serve transcriptions for YouTube videos using the youtube-transcript-api
library. It's designed to be a starting point for integrating YouTube transcriptions into web applications or for further development into more complex systems.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Ensure you have Conda installed on your system. If not, follow the instructions at Conda Installation to set it up.
git clone https://github.com/IvanAquino/yt-transcription-api.git
- Create and activate a Conda environment
conda create --name myflaskenv python=3.12
conda activate myflaskenv
- Install the requirements
Inside the activated environment, install the required packages using:
pip install -r requirements.txt
- Start the Flask application
flask run
Example url
http://127.0.0.1:5000/transcript?video_id=U9mJuUkhUzk&languages=en