Created
May 14, 2018 11:01
-
-
Save enzzc/cb5966bda4c8229d3f526360e56010f1 to your computer and use it in GitHub Desktop.
This file contains 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
import sys | |
import requests | |
base_url = 'https://itunes.apple.com/lookup?id=%s&entity=podcast' | |
itunes_url = sys.argv[1] | |
itunes_id = itunes_url.split('/id')[1].split('?')[0] | |
r = requests.get(base_url % itunes_id).json() | |
print(r['results'][0]['feedUrl']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment