YouTube Video Downloader and Converter
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.
Requirements
- 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.
Installation
Install from pypi.org
pip install youtubetogo
Project
You can install the package using pip from the source directory:
``bash git clone https://github.com/kdcllc/youtubetogo
```bash
pip install .
Command Line Usage
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]
Arguments
-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
Deploy
pip install build twine
python -m build
twine upload dist/*
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
youtubetogo-0.1.3.tar.gz
(5.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file youtubetogo-0.1.3.tar.gz.
File metadata
- Download URL: youtubetogo-0.1.3.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c33fee8d99a9398459ad7f4d8094dc9f8984a8530c88cf7717e5d3db30a8bc58
|
|
| MD5 |
e1963babf03585403514f2d312091729
|
|
| BLAKE2b-256 |
9d1a22f150a179d4da5db2e8059f6c69a30117957c7b1b17d44b5d0236209ded
|
File details
Details for the file youtubetogo-0.1.3-py3-none-any.whl.
File metadata
- Download URL: youtubetogo-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1969f0a45e60711fe20a3d5be6884b2765d7279acc356bdfbade1ef05308c454
|
|
| MD5 |
134286f30ba6592da5f22ea0c4cc427b
|
|
| BLAKE2b-256 |
0441e331da8929f3e136bf4a034531bf9e9b49fce7ce3bd7fe46b3ba849eb169
|