Last active
November 2, 2016 19:20
-
-
Save pbausch/ffd346e6eb00b98edc9855717abd548a to your computer and use it in GitHub Desktop.
Find the podcast RSS URL from an iTunes podcast URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Not sure where I found this one, but thanks! | |
URL=$(curl -s -A "iTunes/9.1.1" --compressed $1 | | |
grep -o 'https[^<]*' | | |
perl -n -mHTML::Entities -e ' ; print HTML::Entities::decode_entities($_) ;') | |
curl -s -A "iTunes/9.1.1" --compressed $URL | | |
grep -o 'feed-url="[^"]*' | | |
sed -e 's/feed-url="//' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment