mirror of
https://github.com/FliegendeWurst/googleplay-api.git
synced 2024-11-22 12:54:58 +00:00
361a5777e4
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
26 lines
737 B
Python
26 lines
737 B
Python
from googleplay import GooglePlayAPI
|
|
|
|
EMAIL = ""
|
|
PASSWD = ""
|
|
AC2DM = ""
|
|
GSFID = 0
|
|
|
|
server = GooglePlayAPI(True)
|
|
if AC2DM == "":
|
|
server.login(EMAIL, PASSWD, None, None)
|
|
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()
|
|
else:
|
|
server.gsfId = GSFID
|
|
server.login(EMAIL, PASSWD, AC2DM, GSFID)
|
|
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()
|