This Flask application allows users to download subtitles from YouTube videos.
-
Clone the repository:
git clone https://github.com/qobulovasror/youtube-subtitles-downloader.git cd youtube-subtitles-downloader
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # For Linux/Mac venv\Scripts\activate # For Windows
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
-
Open your web browser and navigate to http://localhost:5200.
-
Enter the URL of the YouTube video for which you want to download subtitles.
-
Click the "Download Subtitles" button.
-
The subtitles will be downloaded in the SRT format.
myflaskapp/
|
├── venv/ # Virtual enviroment file
│
├── app.py # Main app
│
├── templates/ # HTML templates
│ └── index.html
│
├── static/ # Statik files (CSS, JavaScript, imgs, ...)
│ ├── css/
│ │ └── style.css
│ └── js/
│
└── README.md # About proyekt \
- Flask: Web framework for Python
- requests: HTTP library for making requests
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
Muallif: Asror Qobulov