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.

Usage

yvx [-h] [--path PATH] [-mp3] [--start-time START_TIME] [--end-time END_TIME] 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]).

Examples:

To download a video, run the following command:

yvx <video_url>

If you want to download the video in mp3 format, run the following command:

yvx <video_url> -mp3

You can also extract a clip from the video by specifying the start and end time of the clip. For example, to extract a clip from 2:30 to 5:00, run the following command:

yvx <video_url> --start-time 00:02:30 --end-time 00:05:00

And if you want the video only until certain time, you can specify the end time only. For example, to download the video until 5:00, run the following command:

yvx <video_url> --end-time 00:05:00

Note: All methods shown here will download the video either in mp4 or mp3 format and store it in a folder named "out" in the tool directory.

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 - see the LICENSE file for details.

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.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

yv_xtract-1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file yv_xtract-1.0.tar.gz.

File metadata

  • Download URL: yv_xtract-1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for yv_xtract-1.0.tar.gz
Algorithm Hash digest
SHA256 42ffa4716f6af1bf28de9939136d2bca3e1c248b8940658d7d0896ebedcf2f58
MD5 350bb43faea1f6d271ad6228fac8b2ad
BLAKE2b-256 44b466e4ac271f662f482a309e2bd53456781763f007dade05711fd03bf8cb70

See more details on using hashes here.

File details

Details for the file yv_xtract-1.0-py3-none-any.whl.

File metadata

  • Download URL: yv_xtract-1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for yv_xtract-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b7025519408c1f99c7a7c48cab64a4644e23cf6118341470f8cb80bceb22741
MD5 384757c8e88e581c67ed07b6122e79d2
BLAKE2b-256 d028da6f2e3ee4d0e23e0760b96fdcb83fdc114b2c7d7aef457caca815da5b9c

See more details on using hashes here.

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