🎧 dj-soundcloud-digger
The ultimate crate-digging companion for DJs and electronic music collectors. Instantly extract purchase links, free downloads, and download gates from SoundCloud playlists, user likes, or artist profiles—then preview tracks and manage your library in a high-performance terminal interface.
dj-digger https://soundcloud.com/someone/sets/that-playlist
⚡ Highlights & Features
- 🚀 Ultra-Fast API v2 Digging: Digs a 300-track playlist in ~3 seconds using batch hydration API calls—no browser scrolling or DOM scraping required.
- 🏷️ Smart Store & Gate Classification: Group links automatically into Bandcamp, Beatport, Traxsource, JunoDownload, Record Shops, Download Gates (Hypeddit, Toneden, etc.), Smart links, and Direct SoundCloud Downloads.
- 🎶 In-Memory Audio Preview: Zero-latency streaming and seeking powered by
miniaudio. Pre-fetches upcoming tracks and renders dynamic 16-level block waveforms with reactive audio level meters. - 📦 Multi-Crate Local Library: Save dig sessions as local crates in
~/.local/share/dj-digger/crates/. Switch, refresh, or search across crates seamlessly. - 🧠 Cross-Crate Track Memory: Track decisions (
got it/skipped) are stored globally by SoundCloud track ID. Buying a track once marks it across all future playlists. - 🔓 Download Gate Automation: Resolves follow-to-download gates (Hypeddit, ToneDen, GateRush, Droploud) by replaying their step-completion calls. No browser automation, no Playwright.
- 📄 Saved-HTML Fallback: Fully supports saved HTML pages (
Ctrl+S) for private or unlisted SoundCloud playlists. - ⚙️ CLI & Non-Interactive Mode: Export crates directly to JSON or CSV for automated pipelines and scripts.
📦 Installation
Recommended (via uv or pipx)
# Install with audio preview support (requires miniaudio)
uv tool install 'dj-soundcloud-digger[play]'
or with pipx:
pipx install 'dj-soundcloud-digger[play]'
From Source (Development)
git clone https://github.com/fbialogrecki/dj-soundcloud-digger.git
cd dj-soundcloud-digger
uv venv
uv pip install -e '.[play,dev]'
Requires Python 3.12 or newer.
Note on optional extras:
play: Enables in-memory audio preview viaminiaudio. If installed without[play], the tool runs normally and displays an advisory if audio playback is requested.
🔗 Supported Input Links
| Input Type | Supported URL Pattern | What You Get |
|---|---|---|
| Playlist / Set | soundcloud.com/user/sets/playlist-name |
Every track in the playlist |
| User Likes | soundcloud.com/user/likes |
Every track liked by the user |
| Artist Profile | soundcloud.com/user |
All tracks uploaded by the artist |
| Single Track | soundcloud.com/user/track-name |
Single track metadata & purchase links |
| Saved HTML | playlist.html |
Private / unlisted playlist saved locally |
| Interactive Prompt | Run without arguments | Prompts for a link or opens saved crates |
🖥️ Interactive TUI Workflow
Launching dj-digger opens an interactive Textual browser divided into three key areas:
- Crate Sidebar (
Ctrl+B): Switch between saved crates, add new links (d), or refresh existing crates (r). - Track Table: Displays tracks with status badges (
·untouched,○opened,✓got,✗skipped), position, artist/title, available store badges, genre, and duration. - Player & Waveform Bar: Shows playback state, position, volume, real-time VU level meter, and a 16-level waveform display.
▸ 0 all 1 soundcloud·18 2 bandcamp·12 3 gate·53 83/83 tracks · got 0 · skipped 4
Keybinding Reference
Press ? inside the TUI at any time to view the full grouped keybinding modal.
Track Navigation & Status Marks
| Key | Action |
|---|---|
Up / Down / j / k |
Navigate track rows |
o or Enter |
Open the best link (or active store filter) in your default web browser |
w |
Download artist-provided SoundCloud MP3/WAV directly to ~/Downloads |
g |
Mark track as Got (✓) and move to next track |
s |
Mark track as Skipped (✗) and move to next track |
u |
Clear track status mark (·) |
x |
Remove track from current crate (Ctrl+Z to undo) |
y |
Copy the path of the local file that matches this track (📁 in the row) |
Audio Preview Controls
| Key | Action |
|---|---|
Space |
Play / Pause highlighted track |
[ / ] |
Seek backward / forward 10 seconds |
n / p |
Advance to Next / Previous track |
- / = |
Decrease / Increase playback volume (m to mute/unmute) |
| Mouse Click | Click anywhere on the waveform display to seek immediately |
Filtering, Stores & Library
| Key | Action |
|---|---|
/ |
Live search/filter by artist, title, or genre |
f / F |
Step forward / backward through store filters |
1 – 9 |
Jump directly to store category filter |
0 |
Reset store filter (show all tracks) |
h |
Toggle hiding handled tracks (got / skipped) |
a |
Open all visible store links in browser (asks confirmation for >20 links) |
e |
Export visible rows to file |
d |
Add a new crate from a SoundCloud URL |
r |
Refresh current crate from SoundCloud (preserves local deletions) |
Ctrl+B |
Toggle Crate Sidebar |
🏷️ Store & Gate Categories
Links are parsed and categorized using strict domain-boundary matching:
| Category | Description / Included Domains |
|---|---|
soundcloud |
Direct artist-provided download link enabled on SoundCloud |
bandcamp |
Official Bandcamp release page |
beatport |
Beatport purchase link |
traxsource |
Traxsource store link |
junodownload |
JunoDownload purchase page |
apple |
Apple Music / iTunes Store link |
shop |
Specialized record stores (Boomkat, Hard Wax, Clone, Decks, Deejay, Red Eye, Juno, Phonica, Rush Hour, Bleep, Gumroad) |
gate |
Follow-to-download gates (Hypeddit, Gaterush, Droploud, Wump, Artist Union, Toneden, Pump Your Sound) |
smartlink |
Landing pages (lnk.to, ffm.to, fanlink, smarturl, orcd.co, DistroKid, Linktree) |
streaming |
Pure streaming platforms (Spotify, YouTube, Deezer, Tidal) |
no-link |
No purchase or download link found |
others |
Unrecognized external web link |
🎧 In-Memory Streaming & Waveform Engine
- Zero-Latency Playback: Decodes audio chunks directly off the network socket in memory via
miniaudio. - Pre-Fetching & Gapless Transitions: While listening to a track, the next track's stream URL, waveform data, and initial MBs are buffered 20 seconds prior to track completion.
- SoundCloud Waveform Rendering: Renders SoundCloud's 1800-sample waveform data into a 2-row block ASCII visualizer with logarithmic loudness scaling.
- Reactive Audio VU Metering: Real-time RMS audio signal measurement rendered at 30 FPS.
- Remote SSH / Headless Systems: Automatically degrades to 4 FPS under
TEXTUAL_ANIMATIONS=nonefor smooth operation over SSH connections.
🤖 Non-Interactive CLI & Automation
Add --no-tui to run dj-digger in batch mode for terminal pipelines, cron jobs, or export scripts:
# Export playlist links to CSV
dj-digger https://soundcloud.com/user/sets/playlist --no-tui -f csv -o playlist.csv
# Limit extraction to first 20 tracks and export to JSON
dj-digger https://soundcloud.com/user/likes -n 20 -f json -o likes.json
# Re-open a previously exported JSON crate in the TUI browser
dj-digger open likes.json
# Open all Bandcamp links directly in browser from a saved crate
dj-digger open likes.json --category bandcamp
🏗️ Project Architecture
┌─────────────────────────┐
│ SoundCloud URL / HTML │
└────────────┬────────────┘
│
┌──────────▼──────────┐
│ SoundCloudClient v2 │
│ (Resolve & Hydrate) │
└──────────┬──────────┘
│
┌──────────▼──────────┐
│ Link Categorizer │
│ (Store & Gate Engine│
└──────────┬──────────┘
│
┌────────────────────────┼────────────────────────┐
│ │ │
┌──────────▼──────────┐ ┌──────────▼──────────┐ ┌──────────▼──────────┐
│ Textual TUI App │ │ Local Crate Library│ │ In-Memory Player │
│ (Interactive Grid) │ │ (~/.../crates/) │ │ (Miniaudio & VU) │
└─────────────────────┘ └────────────────────┘ └────────────────────┘
🧪 Testing & Quality Assurance
The codebase includes an extensive offline test suite covering unit tests, API serialization, player buffering, link parsing, and TUI reactive widgets.
# Run offline test suite (360+ tests, no network required)
uv run pytest
# Run live integration tests (verifies SoundCloud API v2 contract stability)
uv run pytest -m live
📄 License
Distributed under the Apache License 2.0. See LICENSE for details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dj_soundcloud_digger-0.6.0.tar.gz.
File metadata
- Download URL: dj_soundcloud_digger-0.6.0.tar.gz
- Upload date:
- Size: 163.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b2d9360071a104944f75470730cb63c143f194aef78f7443e898540443f557b
|
|
| MD5 |
3bfd7942f2b302d2151cc4e04e01aa5b
|
|
| BLAKE2b-256 |
4f0e9b8855b7673088e97e833c33147dcd5723ee0ba86bf9ce6bb32dda1e3291
|
Provenance
The following attestation bundles were made for dj_soundcloud_digger-0.6.0.tar.gz:
Publisher:
publish.yml on fbialogrecki/dj-soundcloud-digger
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dj_soundcloud_digger-0.6.0.tar.gz -
Subject digest:
1b2d9360071a104944f75470730cb63c143f194aef78f7443e898540443f557b - Sigstore transparency entry: 2477036363
- Sigstore integration time:
-
Permalink:
fbialogrecki/dj-soundcloud-digger@fed9d23f6679981b2b82fdf05f11fbabf67399b2 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/fbialogrecki
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fed9d23f6679981b2b82fdf05f11fbabf67399b2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dj_soundcloud_digger-0.6.0-py3-none-any.whl.
File metadata
- Download URL: dj_soundcloud_digger-0.6.0-py3-none-any.whl
- Upload date:
- Size: 102.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a94f7249b29eefcc8273bcb44c4df729a741454d824a46dae8a28d3b7485b821
|
|
| MD5 |
c3c72006aad6aced592050eae6e070e7
|
|
| BLAKE2b-256 |
b47002474c614e678d9494d7ebc18a42ae30b66f05be38131c301940eb0a7224
|
Provenance
The following attestation bundles were made for dj_soundcloud_digger-0.6.0-py3-none-any.whl:
Publisher:
publish.yml on fbialogrecki/dj-soundcloud-digger
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dj_soundcloud_digger-0.6.0-py3-none-any.whl -
Subject digest:
a94f7249b29eefcc8273bcb44c4df729a741454d824a46dae8a28d3b7485b821 - Sigstore transparency entry: 2477036536
- Sigstore integration time:
-
Permalink:
fbialogrecki/dj-soundcloud-digger@fed9d23f6679981b2b82fdf05f11fbabf67399b2 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/fbialogrecki
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fed9d23f6679981b2b82fdf05f11fbabf67399b2 -
Trigger Event:
push
-
Statement type: