Skip to main content

A web version of youtube-dl

Project description

PyPi Package Compatible Python Versions


Backend issues if a single user hits submit multiple times
  • “raise RuntimeError(“Response content longer than Content-Length”)”


pip install web-youtube-dl



Installing this project will give you access to two CLI tools, each with a separate purpose:

  • web-youtube-dl-cli
    Useful for simply downloading the highest possible quality
    audio of a song. Simply provide the URL and an .mp3 will be downloaded to that
    same directory
  • web-youtube-dl
    Useful for running the web service on the local machine. It will
    listen to all local network connections on port 5000 (or whatever port is defined
    in the environment variable YT_DOWNLOAD_PORT).


This project can optionally be run and managed as a Docker container.

Build the Docker image

docker build . -t  web-youtube-dl:latest --force-rm

Run the service

When running the service via Docker, you can configure where it stores downloaded songs by default and the port the service listens on by setting the appropriate environment variables.

To configure the port, set the environment variable YT_DOWNLOAD_PORT to some other numerical value.

To configure the download path, set the environment variable YT_DOWNLOAD_PATH to some other filesystem path. Note that an unprivileged user must have access to writing to this location. By default, this is set to tmp and does not really need to be changed.

docker-compose up -d

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

web-youtube-dl-0.1.2.tar.gz (14.3 kB view hashes)

Uploaded source

Built Distribution

web_youtube_dl-0.1.2-py3-none-any.whl (14.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page