Skip to main content

Download audio/videos from the internet!

Project description

Media Downloader

PyPI - Version PyPI - Downloads GitHub Repo stars GitHub forks GitHub contributors PyPI - License GitHub

GitHub last commit (by committer) GitHub pull requests GitHub closed pull requests GitHub issues

GitHub top language GitHub language count GitHub repo size GitHub repo file count (file type) PyPI - Wheel PyPI - Implementation

Version: 2.1.8

Download videos and audio from the internet!

MCP Server Support!

This repository is actively maintained - Contributions are welcome!

Supports:

  • YouTube
  • Twitter
  • Rumble
  • BitChute
  • Vimeo
  • And More!
Usage:

CLI

Short Flag Long Flag Description
-h --help See usage
-a --audio Download audio only
-c --channel YouTube Channel/User - Downloads all videos
-f --file File with video links
-l --links Comma separated links
-d --directory Location to save videos

Using an an MCP Server:

AI Prompt:

Download me this video: https://youtube.com/watch?askdjfa

AI Response:

Sure thing, the video has been downloaded to:

"C:\Users\User\Downloads\YouTube Video - Episode 1.mp4"
Example:

Use in CLI

media-downloader --file "C:\Users\videos.txt" --directory "C:\Users\Downloads" --channel "WhiteHouse" --links "URL1,URL2,URL3"

Use in Python

# Import library
from media_downloader import MediaDownloader

# Set URL of video/audio here
url = "https://YootToob.com/video"

# Instantiate vide_downloader_instance
video_downloader_instance = MediaDownloader()

# Set the location to save the video
video_downloader_instance.set_save_path("C:/Users/you/Downloads")

# Add URL to download
video_downloader_instance.append_link(url)

# Download all videos appended
video_downloader_instance.download_all()
# Optional - Set Audio to True, Default is False if unspecified.
video_downloader_instance.set_audio(audio=True)

# Optional - Open a file of video/audio URL(s)
video_downloader_instance.open_file("FILE")

# Optional - Enter a YouTube channel name and download their latest videos
video_downloader_instance.get_channel_videos("YT-Channel Name")

Use with AI

Deploy MCP Server as a Service

docker pull knucklessg1/media-downloader:latest

Modify the compose.yml

services:
  media-downloader-mcp:
    image: knucklessg1/media-downloader:latest
    volumes:
      - downloads:/root/Downloads
    environment:
      - HOST=0.0.0.0
      - PORT=8000
    ports:
      - 8000:8000

Configure mcp.json

{
  "mcpServers": {
    "media_downloader": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "media-downloader",
        "media-downloader-mcp"
      ],
      "env": {
        "DOWNLOAD_DIRECTORY": "~/Downloads", // Optional - Can be specified at prompt
        "AUDIO_ONLY": false // Optional - Can be specified at prompt
      },
      "timeout": 300000
    }
  }
}

Run as a docker container:

services:
  media-downloader-mcp:
    image: docker.io/knucklessg1/media-downloader:latest
    ports:
      - "8000:8000"
    volumes:
      - "/home/genius/Downloads:/downloads"
    environment:
      - HOST=0.0.0.0
      - PORT=8000
      - TRANSPORT=http
      - DOWNLOAD_DIRECTORY=/downloads
      - AUDIO_ONLY=false
Installation Instructions:

Install Python Package

python -m pip install media-downloader

Geniusbot Application

Use with a GUI through Geniusbot

Visit our GitHub for more information

Installation Instructions with Geniusbot:

Install Python Package

python -m pip install geniusbot
Repository Owners:

GitHub followers GitHub User's stars

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

media_downloader-2.1.8.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

media_downloader-2.1.8-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file media_downloader-2.1.8.tar.gz.

File metadata

  • Download URL: media_downloader-2.1.8.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for media_downloader-2.1.8.tar.gz
Algorithm Hash digest
SHA256 3c196c64b940106798beb588eeb511eb7e3b03ee7bbb8cb39dbd3fe69a1a8b1c
MD5 14c6322bfb9a23a9172cd13c31da70d6
BLAKE2b-256 bb3f9d8acf38de63ee8a4f7927894b86691ca12887186627d138374a08199316

See more details on using hashes here.

File details

Details for the file media_downloader-2.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for media_downloader-2.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 0459f260f587518d176e9f202ff343ccb8bf2b195a5bceef8b51957a2f826e79
MD5 41b17ef26ea8bbf63af7a3283e6b7a37
BLAKE2b-256 b362182e56885c9ba1af25021f47c223c1b32e48c57ceb9d345a056b91e9a0c2

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