Skip to content

Instantly share code, notes, and snippets.

@lvjian700
Last active October 22, 2021 12:05
Show Gist options
  • Save lvjian700/e905184ad949d4619df6897621b3a834 to your computer and use it in GitHub Desktop.
Save lvjian700/e905184ad949d4619df6897621b3a834 to your computer and use it in GitHub Desktop.
A script to download audio from abc kids listen website

What

The script I wrote for my son to download his favorite story from abc kids listen podcast https://www.abc.net.au/kidslisten/

Usage

Requirements:

brew install youtube-dl ffmpeg

Sample:

curl -s https://www.abc.net.au/kidslisten/story-time/story-time:-miffys-adventures-big-and-small,-5-minutes-more,-pla/13578156 \
 | grep m3u8 \
 | awk -F'"' '{print $4}' \
 | xargs -I _ youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" _

Why

The abc kids website won't keep the audio forever. My son compliants he can't listen his favorite story and he felt sad. The the idea borned with a simple script above.

Trim audio

Use Quick Time to trim the audio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment