Terminal Media Downloader, Audio Mastering & Transcoding Workstation
Haustus is a high-throughput CLI and TUI media workstation supporting 11 Dedicated Platforms and Universal Ingestion for 1000+ Websites (via yt-dlp) and direct media streams. Built with Python, yt-dlp, Rich, Mutagen, and imageio-ffmpeg.
Quick Start
1. Install
pip install haustus
Or from source:
git clone https://github.com/Sonata-Of-Death/Haustus.git
cd Haustus
pip install -e .
2. Run
# Interactive Arrow-Key Menu
haustus
# Or download any media link directly in best quality
haustus "https://www.youtube.com/watch?v=..."
Architecture Overview
┌─────────────────────────────────────────────────────────────────────────────┐
│ USER INTERFACE (TUI / CLI) │
│ ┌───────────────────────────────────────────────────────────────────────┐ │
│ │ Interactive Arrow-Key Menu (Single Enter, Instant [Esc] Return) │ │
│ │ Fast Terminal Navigation, Multi-Profile Sessions & Preset Defaults │ │
│ └───────────────────────────────────────────────────────────────────────┘ │
└──────────────────────────────────────┬──────────────────────────────────────┘
│
┌──────────────────────────────────────▼──────────────────────────────────────┐
│ CORE INGESTION & NETWORK RESILIENCE │
│ ┌──────────────────────────┐ ┌───────────────────┐ ┌───────────────────┐ │
│ │ Multi-Profile Sessions │ │ Adaptive Network │ │ Session Ledger │ │
│ │ Isolated Temp Storage │ │ Full Jitter + CB │ │ Atomic Checkpoint │ │
│ └──────────────────────────┘ └───────────────────┘ └───────────────────┘ │
│ ┌────────────────────────────────────────────────────────────────────────┐ │
│ │ High-Throughput Engine: 16-Stream aria2c + Token-Bucket Pacing │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
│ ┌────────────────────────────────────────────────────────────────────────┐ │
│ │ Rich Live Dashboard: Real-time Speed, ETA, Percentage, Size │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
│ ┌────────────────────────────────────────────────────────────────────────┐ │
│ │ Smart History & Missing File Ledger (Atomic Verification) │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
└──────────────────────────────────────┬──────────────────────────────────────┘
│
┌──────────────────────────────────────▼──────────────────────────────────────┐
│ STUDIO MEDIA POST-PROCESSING │
│ ┌──────────────────────────┐ ┌───────────────────┐ ┌───────────────────┐ │
│ │ GPU Video Transcoding │ │ EBU R128 Audio │ │ Subtitle Embedder │ │
│ │ NVENC / VAAPI / SVT-AV1 │ │ Two-Pass -16 LUFS │ │ Soft Mux (.srt) │ │
│ └──────────────────────────┘ └───────────────────┘ └───────────────────┘ │
│ ┌────────────────────────────────────────────────────────────────────────┐ │
│ │ Mutagen ID3v2.4 & MP4 Cover Art / Metadata Atom Injection │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────┘
Supported Platforms
| Platform |
Supported Media |
Requires Cookies? |
| Instagram |
Full HD Reels, Photo Carousels in subfolders, 24h Stories, Story Highlights, Saved Posts, Reposts |
Optional (Required for Stories & Saved) |
| TikTok |
Watermark-free HD Videos, Photo Slideshow albums, Original Music, Saved / Favorites, Collections, Reposts |
Optional (Required for Favorites) |
| YouTube |
Up to 4K/1080p with audio, Shorts, Interactive Playlist picker (Watch Later, Liked), Full Channels |
Optional (Age-gate / Private) |
| X (Twitter) |
Full HD media tweets, video broadcasts, photo sets, Bookmarks, Retweets, Archive ingestion (bookmarks.json) |
Optional (Required for Bookmarks) |
| SoundCloud |
Audio tracks, sets, artist discographies, user liked tracks with cover art embedding |
Optional (Required for Liked) |
| Reddit |
DASH video with merged audio, multi-image galleries, Subreddit feeds (Hot/Top/New), Saved / Upvoted |
Optional (Required for Saved / Upvoted) |
| Facebook |
Full HD/SD Reels, Public video posts, Watch URLs, short links (fb.watch), Saved collections |
Optional (Required for Saved) |
| Pinterest |
Video pins, original uncompressed images (/originals/ CDN pattern) with metadata JSON, full Boards |
Optional (Required for Saved Boards) |
| Twitch |
Stream clips (clips.twitch.tv), past broadcasts (VODs), channel archives, audio extraction |
Optional (Required for Sub-only VODs) |
| Threads |
Single post videos, original high-resolution photo carousels with metadata.json, creator profiles |
Optional |
| Spotify |
Track/Album/Playlist metadata & cover art resolution with high-fidelity audio discovery |
Optional (Session via sp_dc) |
| 1000+ Universal Sites |
Vimeo, Bilibili, Dailymotion, Loom, Streamable, Rumble, Bandcamp, and direct media URLs |
No |
[!NOTE]
Third-party platforms frequently update their web interfaces, layout APIs, and anti-scraping mechanisms. Features like watermark-free extraction, Spotify track resolution, and authenticated bookmarks rely on upstream availability.
System Requirements
- Python:
>= 3.10
- FFmpeg: Handled automatically via
imageio-ffmpeg or discovered from system PATH.
- aria2c (Optional): Required only when passing the
--aria2 multi-stream acceleration flag. Install via your package manager:
- Windows:
winget install aria2 or choco install aria2
- macOS:
brew install aria2
- Linux:
sudo apt install aria2
Usage
1. Interactive Menu (TUI)
Run without arguments to launch the interactive arrow-key interface:
haustus
- Arrow Keys (
Up / Down) or W / S: Move selection.
- Single Enter: Confirm selection.
- Number Keys (
0 - 9): Quick jump to numbered item.
[H] or [?]: Open / close keyboard shortcuts help overlay.
[Esc]: Return to previous menu or abort prompt.
2. Common CLI Commands
Single Media Downloads
# 1080p Video
haustus "https://www.youtube.com/watch?v=..." -q 1080
# 320 kbps Audiophile MP3 with Embedded Cover Art & ID3 Tags
haustus "https://www.youtube.com/watch?v=..." -a -aq 320 -af mp3 --embed-metadata
# Specific Clip Range (HH:MM:SS format)
haustus "https://www.youtube.com/watch?v=..." --clip "01:20-03:45"
# Bandwidth Speed Limit Capped at 2 MB/s
haustus "https://www.youtube.com/watch?v=..." --speed-limit 2M
Batch & Smart Filters
# Batch download from text file (one URL per line)
haustus -f links.txt
# Cap playlist download at first 20 items uploaded in the last 7 days
haustus -p "https://www.youtube.com/playlist?list=..." --count-limit 20 --date-after now-7days
# Shorts only under 60 seconds
haustus -u "@channel" --shorts-only
# Specific items in a playlist
haustus -p "https://www.youtube.com/playlist?list=..." --items "1,3,5-10"
Authenticated Collections
# Instagram Saved Posts & Stories
haustus --saved
haustus --instagram-stories "@creator"
# TikTok Saved Favorites & Reposts
haustus --tiktok-saved
haustus --tiktok-reposts
# X (Twitter) Bookmarks
haustus --x-bookmarks
# Reddit Subreddit Feed Batch
haustus --reddit-subreddit "EarthPorn" --reddit-sort top --reddit-timeframe week
# Spotify Playlist to 320k Tagged MP3s
haustus --spotify-playlist "https://open.spotify.com/playlist/..." --audio-quality 320
Command Line Arguments Reference