The script I wrote for my son to download his favorite story from abc kids listen podcast https://www.abc.net.au/kidslisten/
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" _
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.
Use Quick Time to trim the audio.