forked from egirault/googleplay-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbulkDetail.py
More file actions
30 lines (22 loc) · 722 Bytes
/
bulkDetail.py
File metadata and controls
30 lines (22 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/python
# Do not remove
GOOGLE_LOGIN = GOOGLE_PASSWORD = AUTH_TOKEN = None
import sys
from pprint import pprint
from config import *
from googleplay import GooglePlayAPI
from helpers import sizeof_fmt, print_header_line, print_result_line, print_result_json
if (len(sys.argv) < 2):
print "Usage: %s packageName(;packageName)" % sys.argv[0]
print "Details for an applications."
sys.exit(0)
packageNames = sys.argv[1].split(";")
api = GooglePlayAPI(ANDROID_ID)
api.login(GOOGLE_LOGIN, GOOGLE_PASSWORD, AUTH_TOKEN)
for packageName in packageNames:
try:
message = api.details(packageName)
except:
continue
# print if nothing wrong
print_result_json(message.docV2)