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