Skip to main content

A simple YouTube video downloader using yt_dlp

Project description

WaveYT

WaveYT is a simple Python package for downloading YouTube videos using yt-dlp. Designed for developers and general users alike, WaveYT makes downloading videos straightforward and efficient.

Features

  • Downloads YouTube videos in the best available video and audio format.
  • Saves the downloaded video with its title as the filename.
  • Easy-to-use command-line interface (CLI).

Installation

To install WaveYT, simply use pip:

How To use

import yt_dlp

def download_youtube_video(): # Get the YouTube link from the user video_url = input("Enter the YouTube video URL: ")

# Define download options
ydl_opts = {
    'format': 'best',  # Best video+audio format
    'outtmpl': '%(title)s.%(ext)s',  # Save file as the video's title
}

try:
    # Download the video
    with yt_dlp.YoutubeDL(ydl_opts) as ydl:
        info = ydl.extract_info(video_url, download=True)
        print(f"Downloaded: {info['title']}")
except Exception as e:
    print("Error:", e)

if name == "main": download_youtube_video()

pip install WaveYT

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

waveyt-0.1.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

WaveYT-0.1.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file waveyt-0.1.1.tar.gz.

File metadata

  • Download URL: waveyt-0.1.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for waveyt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6a55235f2d754a20ed7812e547c686efe51a2592b1d0c595cb4b114fc2915ffd
MD5 d80d193074c0f7f83f279201a3756d91
BLAKE2b-256 a42c59c49ae14ff4209d6b949b915e19259f210ddce039d3cca29d6cc3bf7af5

See more details on using hashes here.

File details

Details for the file WaveYT-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: WaveYT-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for WaveYT-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7a186ed3f2557328d6664f7651a7c5c54f586762770b706339c5395ffbb9711
MD5 f0a6f315aa5a352e8aa156e99821eb2b
BLAKE2b-256 1eb8c393ba6973bd8c6ec2470aafda0a9d95377c121b3147dbf38d2234e1519e

See more details on using hashes here.

Supported by

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