CLI tool to download YouTube videos
Project description
YouTube Video Xtractor
A simple CLI tool to download videos from YouTube either in mp4 or mp3 format and with the ability to crop them.
Developed by Ricaidito.
Usage
yvx [-h] [--path PATH] [-mp3] [--start-time START_TIME] [--end-time END_TIME] [--set-path SET_PATH] url
positional arguments:
url URL of the video to download.
options:
-h, --help show this help message and exit
--path PATH Path to store the downloaded file (default: current_directory/out/).
-mp3 Convert the video to MP3 format.
--start-time START_TIME
Time from where the video will start (Format: HH:MM:SS [e.g., 00:02:30]).
--end-time END_TIME Time where the video will end (Format: HH:MM:SS [e.g., 00:05:00]).
--set-path SET_PATH Set the default path to store the downloaded files.
Examples:
To download a video, execute the following command:
yvx <video_url>
Download the video in mp3 format:
yvx <video_url> -mp3
To extract a clip from 2:30 to 5:00:
yvx <video_url> --start-time 00:02:30 --end-time 00:05:00
You also can specify the end time only. For example, to download the video until 5:00:
yvx <video_url> --end-time 00:05:00
To download the video in a specific directory, you can add the --path
flag as shown below:
yvx <video_url> --path <path_to_directory>
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yv_xtract-1.1.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file yv_xtract-1.1.tar.gz
.
File metadata
- Download URL: yv_xtract-1.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cef649f0d968912aa7fe9002fffee91765bcba65e993457e8616796bc8717b2c |
|
MD5 | 31195c11bb8f6079b7b425880bd4c72e |
|
BLAKE2b-256 | ddaa9b26ed67d2f575fd93b102563cd968f880d1d8c07713df3a1535e3175af9 |
File details
Details for the file yv_xtract-1.1-py3-none-any.whl
.
File metadata
- Download URL: yv_xtract-1.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 661310877a013472d5dae08257ffcb23f389ea66d1d5ab384badbec1f195ee3b |
|
MD5 | 74ecbb1cdb9fe110976e0d03fde92aa2 |
|
BLAKE2b-256 | b374e897c13b746e9933f71729b1338ded2e6e6526f4c42cc4b16351592f9c07 |