Skip to main content

YoutubeSnoop

A Youtube downloader of the highest quality


Installation

You can install it via pip:

$ pip install youtubesnoop

Prerequisites

  • ffmpeg must be installed and available in your PATH.

Usage

A simple command-line tool that downloads Youtube videos in the highest quality available.

Just provide a Youtube URL:

$ youtubesnoop https://www.youtube.com/watch?v=dQw4w9WgXcQ

It will download single tracks to this format:

{title}.flac

Downloading Album Playlists

Provide a playlist URL and it will create a folder for the artist and nest it with the year and album title:

{artist}/{year} - {albumTitle}

This fits my personal need to download albums from Youtube playlists.

Each track will be named like this:

{tracknumber}. {title}.flac

It will try to infer the metadata from the playlist and set it in the downloaded files. Otherwise it will prompt you for it. It uses the mutagen library to set the metadata with the help of musicbrainz to fix any mistakes. It uses musicbrainzngs to download cover art as Cover.jpg or Cover.png and place it in the folder and added to the metadata of each track.

Videos

It downloads as flac files per default but with the --video flag it will download the video as mp4 instead.


403 Forbidden Errors

Youtube constantly changes their API. The solution is likely to upgrade the yt-dlp dependency that this package uses under the hood.

Run:

$ pip install --upgrade youtubesnoop

Or:

$ pipx upgrade yt-dlp

Windows Note

It has been tested on Windows (Powershell) and MacOS.

For Powershell, remember to wrap the URL in quotes to avoid issues with special characters such as & being interpreted.

On Windows, don't use Git Bash since prompt_toolkit has issues with it ANSI escape codes etc.

Metadata

Release files for youtubesnoop 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for youtubesnoop 0.1.7
File Size Uploaded Provenance
youtubesnoop-0.1.7.tar.gz 57.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for youtubesnoop 0.1.7
File Interpreter ABI Platform
youtubesnoop-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 71.0 kB

Release files / youtubesnoop-0.1.7.tar.gz

Download URL youtubesnoop-0.1.7.tar.gz
Size 57.0 kB
Tags Source
SHA-256 checksum
How to use checksums
db08122d7c136cdfdabdc6852852d1a1ea2d0e78d72c1b6180c029382cc4cd21
BLAKE2b-256 checksum
How to use checksums
4d3610f28c755c7f69065d324d0ba7ef0d4ae4822977bc10fbb0ec6c040c5447
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / youtubesnoop-0.1.7-py3-none-any.whl

Download URL youtubesnoop-0.1.7-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
929a51d7086c9849721a1a3b2947bacd90c0235b7f4fd6a3189af6cb2faf9242
BLAKE2b-256 checksum
How to use checksums
4de7a625d205694bf04bb8d2f2971442742f09c7b9e36ac343b3207a93941e4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for youtubesnoop 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page