Skip to content

Instantly share code, notes, and snippets.

@plindberg
Created December 5, 2010 21:18
Show Gist options
  • Select an option

  • Save plindberg/729476 to your computer and use it in GitHub Desktop.

Select an option

Save plindberg/729476 to your computer and use it in GitHub Desktop.
Tankar ned samtliga avsnitt av följetongen Mannen utan egenskaper
ASX_URLS=$(curl -Ls "http://sverigesradio.se/sida/default.aspx?programid=1111" \
| sed -e '/href=".*asx".*title="Mann/!d' -e 's/^.*a href="//; s/".*$//' \
| sort | uniq)
for ASX_URL in ${ASX_URLS}; do
M4A_URL=$(curl -s http://sverigesradio.se${ASX_URL} \
| sed -e '/<ref/!d' -e 's/^.*href="//; s/".*$//')
curl -LO ${M4A_URL}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment