mirror of
https://github.com/FliegendeWurst/googleplay-api.git
synced 2024-11-24 13:54:57 +00:00
Fixed test code in README.md
This commit is contained in:
parent
1848a618f6
commit
7d3969ea1d
@ -31,9 +31,10 @@ 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:
|
||||||
|
if 'docid' in doc:
|
||||||
print("doc: {}".format(doc["docid"]))
|
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"]))
|
||||||
|
Loading…
Reference in New Issue
Block a user