Podcast Downloader
Download podcast audio and show notes from xiaoyuzhoufm.com (小宇宙).
Quick Start
# Download single episode
./scripts/download.sh "https://www.xiaoyuzhoufm.com/episode/abc123def456ghi789jklmno"
Output
/Users/zym/Documents/podcast/ # Baidu cloud sync directory
└── PodcastName-EpisodeTitle/
├── EpisodeTitle.mp3
└── EpisodeTitle.md
Workflow
- Extract Info - Parse
__NEXT_DATA__ JSON from episode page
- Download m4a - Get audio file from CDN
- Convert to MP3 - Required for Bluetooth headphones compatibility
- Delete m4a - Save disk space
- Save Show Notes - Extract shownotes as markdown
Requirements
curl - HTTP requests
jq - JSON parsing
ffmpeg - Audio conversion
Environment Variables
| Variable | Default | Description |
|---|
PODCAST_DIR | /Users/zym/Documents/podcast/ | Output directory (Baidu cloud sync) |
AUDIO_QUALITY | 0 | MP3 quality (0=best, 2=good, 4=normal) |
KEEP_M4A | false | Keep original m4a file |
Quick Reference
| Task | Command |
|---|
| Download single episode | ./scripts/download.sh <URL> |
| Batch download | See reference.md |
| Custom quality | AUDIO_QUALITY=2 ./scripts/download.sh <URL> |
| Keep m4a | KEEP_M4A=true ./scripts/download.sh <URL> |
Files
SKILL.md - This file (quick start)
reference.md - Advanced usage, batch download, troubleshooting
scripts/download.sh - Main download script
LICENSE.txt - MIT License
Next Steps
- For batch download, see reference.md
- For troubleshooting, see reference.md