This telegram bot download subtitles and vedio from YouTube videos.
-
Clone the repository:
git clone https://github.com/qobulovasror/youtube-vedio-subtitle-downloder.git cd youtube-vedio-subtitle-downloder
-
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
-
Create .env file and write telegram bot TOKEN
TOKEN=YOUR_TELEGRAM_BOT_TOKEN
-
Run the Flask application:
python app.py
youtube-vedio-subtitle-downloder/
│
├── venv/ # Virtual environment files
│
├── app.py # main app
│
├── .gitignore # Git ignore files list
│
├── requirements.txt # installition libs
│
└── README.md # about this project\
- requests: check vedio existens
- python-telegram-bot: for working telegram bot
- youtube-transcript-api: download subtitle from youtube
- pytube: download video and audio from youtube
- python-dotenv: for working environment
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.