Fixed test code in README.md

This commit is contained in:
Antoine Neuenschwander 2019-09-18 13:19:44 +02:00 committed by Domenico Iezzi
parent 1848a618f6
commit 7d3969ea1d

View File

@ -31,10 +31,11 @@ passwd = "mypasswd"
api = GooglePlayAPI(locale="en_US", timezone="UTC", device_codename="hero2lte") api = GooglePlayAPI(locale="en_US", timezone="UTC", device_codename="hero2lte")
api.login(email=mail, password=passwd) api.login(email=mail, password=passwd)
result = server.search("firefox") result = api.search("firefox")
for doc in result: for doc in result:
print("doc: {}".format(doc["docid"])) if 'docid' in doc:
print("doc: {}".format(doc["docid"]))
for cluster in doc["child"]: for cluster in doc["child"]:
print("\tcluster: {}".format(cluster["docid"])) print("\tcluster: {}".format(cluster["docid"]))
for app in cluster["child"]: for app in cluster["child"]: