Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

yv_xtract-1.1-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page