本文整理匯總了Python中googleplay.GooglePlayAPI.bulkDetails方法的典型用法代碼示例。如果您正苦於以下問題:Python GooglePlayAPI.bulkDetails方法的具體用法?Python GooglePlayAPI.bulkDetails怎麽用?Python GooglePlayAPI.bulkDetails使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類googleplay.GooglePlayAPI
的用法示例。
在下文中一共展示了GooglePlayAPI.bulkDetails方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: app
# 需要導入模塊: from googleplay import GooglePlayAPI [as 別名]
# 或者: from googleplay.GooglePlayAPI import bulkDetails [as 別名]
from pprint import pprint
from google.protobuf import text_format
from __init__ import *
from googleplay import GooglePlayAPI
if (len(sys.argv) < 2):
print "Usage: %s packagename1 [packagename2 [...]]" % sys.argv[0]
print "Display permissions required to install the specified app(s)."
sys.exit(0)
packagenames = sys.argv[1:]
api = GooglePlayAPI(ANDROID_ID)
api.login(GOOGLE_LOGIN, GOOGLE_PASSWORD, AUTH_TOKEN)
# Only one app
if (len(packagenames) == 1):
response = api.details(packagenames[0])
print "\n".join(i.encode('utf8') for i in response.docV2.details.appDetails.permission)
else: # More than one app
response = api.bulkDetails(packagenames)
for entry in response.entry:
if (not not entry.ListFields()): # if the entry is not empty
print entry.doc.docid + ":"
print "\n".join(" "+i.encode('utf8') for i in entry.doc.details.appDetails.permission)
print