mirror of
https://github.com/FliegendeWurst/googleplay-api.git
synced 2024-11-22 04:44:59 +00:00
Merge pull request #91 from ppoffice/master
Fix protobuf generation and test file
This commit is contained in:
commit
65c92c96f0
2
setup.py
2
setup.py
@ -20,7 +20,7 @@ class ProtobufBuilder(_build):
|
||||
subprocess.run([PROTOC_BIN,
|
||||
"--proto_path=" + CURRENT_DIR,
|
||||
"--python_out=" + CURRENT_DIR + "/gpapi/",
|
||||
"googleplay.proto"])
|
||||
CURRENT_DIR + "/googleplay.proto"])
|
||||
super().run()
|
||||
|
||||
setup(name='gpapi',
|
||||
|
@ -18,7 +18,8 @@ print(server.searchSuggest("fir"))
|
||||
|
||||
result = server.search("firefox")
|
||||
for doc in result:
|
||||
print("doc: {}".format(doc["docid"]))
|
||||
if 'docid' in doc:
|
||||
print("doc: {}".format(doc["docid"]))
|
||||
for cluster in doc["child"]:
|
||||
print("\tcluster: {}".format(cluster["docid"]))
|
||||
for app in cluster["child"]:
|
||||
@ -80,7 +81,8 @@ print("\nBrowsing the {} category\n".format(sampleCat))
|
||||
browseCat = server.home(cat=sampleCat)
|
||||
|
||||
for doc in browseCat:
|
||||
print("doc: {}".format(doc["docid"]))
|
||||
if 'docid' in doc:
|
||||
print("doc: {}".format(doc["docid"]))
|
||||
for child in doc["child"]:
|
||||
print("\tsubcat: {}".format(child["docid"]))
|
||||
for app in child["child"]:
|
||||
|
Loading…
Reference in New Issue
Block a user