Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#!/usr/bin/env python
from urlparse import urlparse, parse_qs
import urllib2
import plistlib
import webbrowser
print 'Enter url copied from Crashlytics Beta iOS webpage'
print 'Should look like itms-services://?action=download-manifest&'
itms_url = raw_input('Enter item-services url: ')
result = urlparse(itms_url)
params = parse_qs(result.query)
plist_url = params['url'][0]
plist_content = urllib2.urlopen(plist_url).read()
plist = plistlib.readPlistFromString(plist_content)
ipa_url = plist['items'][0]['assets'][0]['url']
print 'IPA URL is'
print ipa_url
print 'Opening in default browser'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment