This script downloads and converts YouTube videos to either video or audio format. It can download videos from a specific channel or a single video URL.
- ffmpeg to be installed on the system.
sudo apt install ffmpeg
- If desired to download all of the videos from a specified channel then YouTube Data API v3 key must be created.
Install from pypi.org
pip install youtubetogo
You can install the package using pip from the source directory:
``bash git clone https://github.com/kdcllc/youtubetogo
```bash
pip install .
youtubetogo -u <video_url> [-a]
# YouTube Data API v3 api key is required
# store the key in .env file use .env.sample file
youtubetogo -c <channel_id> [-a]
python main.py -u <video_url> [-a]
python main.py -c <channel_id> [-a]
-a
,--audio
: Convert videos to audio-u
,--url
: URL of the video to download and convert-c
,--channel
: Channel ID to download and convert videos from
pip install build twine
python -m build
twine upload dist/*