Last active
August 24, 2016 18:58
-
-
Save WardsParadox/e86a17cb7291714bde68874b5c94e66e to your computer and use it in GitHub Desktop.
GetBundleID.py - Get's Bundle ID for passed App ID. ( https://kb.acronis.com/content/39368 )
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
#!/usr/bin/python | |
import json | |
import sys | |
from urllib2 import urlopen | |
AppID = sys.argv[1] | |
#AppID = "284910350" # Yelp app for testing | |
url = urlopen("https://itunes.apple.com/lookup?id={0}".format(AppID)) | |
data = json.loads(url.read()) | |
results = data['results'] | |
sublist = results[0] | |
print sublist['bundleId'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment