by rsync · 9y ago · 0 comments
But unfortunately, like almost all media outlets, finding an actual link that points to an actual mp3 file is very time consuming and difficult.
Here's an example ...
Let's say you want to download an episode of 1-A to listen to on an airplane. The front page of the website[1] has "listen" links and also a "subscribe to the "podcast"" link. But I don't want to "listen" and I don't want to subscribe to anything and I don't use itunes (or anything like itunes).
So you click the link to the actual episode of the show[2] but once again ... cute little "listen" link ... cute little "discuss" link ... but no way to download a file.
So now it's getting frustrating ... but as a last ditch effort, you turn off your brain and just type in "download 1-a episode" into google and come up with this link[3] which takes you to a different website (npr.org) which has a list of 1-a episodes (and our friend the "listen" button) but also has a cute little "..." button that expands into choices, one of which is "download".
Every section of npr.org offers an RSS feed of its stories. To subscribe to a topic or show, paste the URL of a topic page, a program home page, or a story page into your RSS reader of choice. The reader should recognize the RSS feed within the page and allow you to subscribe.
Also, all podcasts from NPR and its member stations are available for RSS subscription. First, visit the NPR Podcast Directory and select a podcast. Then click the large blue “Subscribe” button and choose “Copy RSS Link” from the dropdown. Paste that link into the podcast application or RSS reader of your choice.
The NPR Podcast Directory[2] linked there seems like it may work for what you want. It shows all podcasts, and in each one the individual episodes all have that ... link you referred to. That looks to be the base site that you are finding through google, and it apparently has every podcast, so they have taken steps to make it easy to get them, there just seems to be poor discoverability for that project.
1: https://help.npr.org/customer/en/portal/articles/2094175-whe...
... which I have bookmarked and which largely solves my usability problem with npr(.org).
However, the general problem - which is that it's always a pain to find a static link to a regular file - persists. Not every publisher has a nice page like this. In fact, some of them have no way to get an actual file without subscribing or rss-reading or "listen now"-ing.
The simple test is this: is there a link that I can right-click, and copy, and feed to curl without any doctoring or scripting ?
Most publishers fail this test.
Here is their web player - https://play.pocketcasts.com/
They have download option on all the feeds.
Unfortunately, I also play podcasts from my phone to my Sonos. It's bad enough that my bookmarks (last listened to location) aren't available when moving between the Podcasts app and the Sonos app, so the last thing I'm going to do is get a 3rd app into the mix where I have to manage subscriptions on 2 and listen on a 3rd.
All info, titles, summaries, urls, etc. is in 1.1M of html at http://wamu.org/shows/
Below extracts only title, audio ID, audio url, and audio length.
curl -4o npr.htm http://wamu.org/shows/
ls -lh npr.htm
1.1M
exec awk '{gsub(/\",\"/,"\n");print}' \
|exec sed '
N;s/\\//g;N;/mp3/!d;/\\/d;
/audioOffset/d;
s/.*audioTitle\":\"//;
s/audioLength\":\"//;
s/audioFileID\"://;
s/\"audioFile\":\"//;
' npr.htm
Output should be something like Salman Rushdie's American Tale
2844294,https://downloads.wamu.org/mp3/1a/17/09/a2170925-2.mp3
35:13
Alabama Senate Race: More Than Moore-Strange
2844300,https://downloads.wamu.org/mp3/1a/17/09/a1170925.mp3
47:11
Manafort In The Middle
2807643,https://downloads.wamu.org/mp3/1a/17/09/a1170921.mp3
47:11
I counted 214 audio urls total.Live stream is at http://wamu-1.streamguys.com
https://play.podtrac.com/npr-510316/npr.mc.tritondigital.com...
I think you're overcomplicating things, podcasts are pretty much RSS feeds of mp3 files, nothing to do iTunes.
If you follow the subscribe link and click RSS feed, you get a list of the mp3 file locations.
In the developer tools inspector, select the audio player and search for `div#external_player`, right click > "expand all", and there should be an "<audio>" tag. The `src` attribute of that contains the mp3 that you want.
[0] https://addons.mozilla.org/en-US/firefox/addon/audio-downloa...
I think demanding the ‘raw mp3’ is a bit of a corner case here.
So not entirely obvious, but kind of a straight line.
Compared with This American Life: 'wget http://audio.thisamericanlife.org/jomamashouse/ismymamashous...
Here's the page for 1-A for example: https://www.stitcher.com/podcast/national-public-radio/1a-2
disclaimer: former employee
Step 2: receive complaints.