Skip to main content

YouTube Private Downloader

Zero-runtime-dependency CLI for downloading a private YouTube video that the authenticated account is authorized to access. ffmpeg must be installed and available on PATH.

Install

python -m pip install youtube-private-downloader

Export the authorized browser session as a Netscape-format cookies.txt file, then run:

youtube-private-download \
  'https://www.youtube.com/watch?v=VIDEO_ID' \
  ./video.mp4 \
  --cookies ./cookies.txt

Or run the command with no arguments and answer its prompts:

youtube-private-download

Use --overwrite to replace an existing output file. Never commit or share the cookie file because it can provide access to the browser session.

Publish

Build and upload from the project root:

python -m pip install ".[publish]"
python -m build
python -m twine upload dist/*

Run these commands from the project root. PyPI will prompt for credentials; use a PyPI API token as the password. Publishing cannot be completed without the package owner's PyPI credentials.

Metadata

Release files for youtube-private-downloader 0.1.0

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

Source distribution (sdist)

Source distribution for youtube-private-downloader 0.1.0
File Size Uploaded
youtube_private_downloader-0.1.0.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for youtube-private-downloader 0.1.0
File Interpreter ABI Platform
youtube_private_downloader-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / youtube_private_downloader-0.1.0.tar.gz

Download URL youtube_private_downloader-0.1.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
84504a04e3d156cf87b979758e2bc40d9cf7bb360002841c980ee7069fe876ba
BLAKE2b-256 checksum
How to use checksums
1db4dfb4307c98c1d711b05124d783ec21a68c011676e59ef8e6dc59e4273802
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / youtube_private_downloader-0.1.0-py3-none-any.whl

Download URL youtube_private_downloader-0.1.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea12a64fbacd5e810a67603bfddfdb2236a347823eeae9cc501df8be49532995
BLAKE2b-256 checksum
How to use checksums
ed5690e68e3567edf11fd37eddc8a18bd3bd851c22435c6976380f8e95316643
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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