Download show audio from Spinitron's ARK player.
Note
Audio is only available for two weeks from the original air date! This is a Spinitron imposed limitation necessary for compliance with certain copyright law.
-
Make sure you have ffmpeg and Python installed on your machine. You can download them easily using Homebrew in your command line:
brew install ffmpeg python
-
Initialize a virtual environment and install Python pre-requisites:
python3 -m venv venv source venv/bin/activatepip install -r requirements.txt
-
Get show audio:
./spinget.py 11/04/2021 00:00 1
The above invocation gets
1hour of audio starting at midnight (00:00) on October 4th, 2024 (10/04/2024).Note on station configuration: By default, the script uses the 'default' station configuration from
stations.json. To use a different station, pass the station code using the--stationoption. For example:./spinget.py --station wxyz 11/04/2021 00:00 1
Make sure your
stations.jsonfile is updated with the details for your station (if not WBOR).Warning: this script generates intermediate files in the working directory (though they are purged upon completion).
-
Optionally, provided a
.csvcontaining the dates, times, and durations of multiple shows you'd like to download, you can run:./bulk_download.py shows-example.csv
where
shows-example.csvfollows the same format as in the orignal command, outlined in the file included in thsi repository.