Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 1.56 KB

File metadata and controls

68 lines (49 loc) · 1.56 KB

Youtube vedio and suntitle (caption) downloader telegram bot

This telegram bot download subtitles and vedio from YouTube videos.

Installation

  1. Clone the repository:

    git clone https://github.com/qobulovasror/youtube-vedio-subtitle-downloder.git
    cd youtube-vedio-subtitle-downloder
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # For Linux/Mac
    venv\Scripts\activate     # For Windows
  3. Install the required dependencies:

    pip install -r requirements.txt

Usage

  1. Create .env file and write telegram bot TOKEN

    TOKEN=YOUR_TELEGRAM_BOT_TOKEN
  2. Run the Flask application:

    python app.py

Project Structure

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\

Dependencies

  • 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

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.