Skip to content

Instantly share code, notes, and snippets.

@WardsParadox
Last active August 24, 2016 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WardsParadox/e86a17cb7291714bde68874b5c94e66e to your computer and use it in GitHub Desktop.
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 )
#!/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