2017-09-05 20:28:06 +00:00
|
|
|
from googleplay import GooglePlayAPI
|
|
|
|
|
2017-09-16 11:17:21 +00:00
|
|
|
EMAIL = ""
|
|
|
|
PASSWD = ""
|
|
|
|
AC2DM = ""
|
|
|
|
GSFID = 0
|
|
|
|
|
|
|
|
server = GooglePlayAPI(True)
|
|
|
|
if AC2DM == "":
|
|
|
|
server.login(EMAIL, PASSWD, None, None)
|
2017-09-16 12:57:21 +00:00
|
|
|
print(server.search('firefox', 1, None).child[0])
|
|
|
|
print(server.bulkDetails(['com.mozilla.firefox']))
|
|
|
|
fl = server.download('com.cpuid.cpu_z', 23)
|
|
|
|
with open('com.cpuid.cpu_z.apk', 'wb') as f:
|
|
|
|
f.write(fl)
|
|
|
|
f.close()
|
2017-09-16 11:17:21 +00:00
|
|
|
else:
|
|
|
|
server.gsfId = GSFID
|
|
|
|
server.login(EMAIL, PASSWD, AC2DM, GSFID)
|
2017-09-16 12:57:21 +00:00
|
|
|
print(server.search('firefox', 1, None).child[0])
|
|
|
|
print(server.bulkDetails(['com.mozilla.firefox']))
|
|
|
|
fl = server.download('com.cpuid.cpu_z', 23)
|
|
|
|
with open('com.cpuid.cpu_z.apk', 'wb') as f:
|
|
|
|
f.write(fl)
|
|
|
|
f.close()
|