3 ms·
Will you accept quick and dirty, inelegant? All info, titles, summaries, urls, etc. is in 1.1M of html at http://wamu.org/shows/ http://wamu.org/shows/ Below
by feelin_googley 9y ago
Will you accept quick and dirty, inelegant?
All info, titles, summaries, urls, etc. is in 1.1M of html at http://wamu.org/shows/ 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 http://wamu-1.streamguys.com