Skip to content

03. Getting mp3 files

Jeff Zohrab edited this page May 13, 2022 · 1 revision

Pact plays MP3s, and getting mp3s reliably is a moving target -- at least, it is for me on my Mac.

Downloading YouTube videos as MP3

Some sites offer a downloading service. They appear to come and go, so here is what I've used (as of May 2022):

Pytube

Pytube is a python library. e.g., see this StackOverflow post -- I think there are other command-line options as well.

Mac-specific software and hacks

Mac Podcast player used to let you drag-and-drop podcasts from the gui to a Finder folder, but of course that no longer works because Apple.

So, some options:

hagent node script

Project: https://github.com/hagent/export-macos-podcasts

This needs Node.js 14 or higher, so you might need to:

npm install -g n
sudo n latest
sudo n 18.1.0  # or whatever

# Sanity check: I had to clean up a bunch of stuff to get the node
# version change from n to stick.
node -v

# Run the script
npx github:hagent/export-macos-podcasts

I actually had many more issues with npm/node/npx, and ended up referring to https://stackoverflow.com/questions/32849741/homebrew-npm-install-could-not-symlink for help.

Other OS's

LMK if you have any thoughts.

Clone this wiki locally