API获取Android谷歌播放评论(获取设备名称和应用程序版本)

Ale*_*xis 22 android google-play

我想在Google Play上检索特定应用的所有评论,我需要评论中的这些信息:评论,评论,设备名称和评论所针对的应用版本.

我试图使用android-market-api,但遗憾的是我只能得到评级,创作时间,authorname,文本,authorid.

所以我想知道是否有API或网址我可以发送帖子或获取请求(如android-market-api发送帖子请求)来检索我需要的信息.

aus*_*len 11

Python中的一个示例,其中包含使用服务帐户凭据的新评论API.

from httplib2 import Http
from oauth2client.service_account import ServiceAccountCredentials
from apiclient.discovery import build

credentials = ServiceAccountCredentials.from_json_keyfile_name(
    '<secret from service account>.json',
    scopes=['https://www.googleapis.com/auth/androidpublisher'])

service = build('androidpublisher', 'v2', http=credentials.authorize(Http()))

package_name = "<package name>"
reviews_resource = service.reviews()
reviews_page = reviews_resource.list(packageName=package_name, maxResults=100).execute()
reviews_list = reviews_page["reviews"]

infinite_loop_canary = 100
while "tokenPagination" in reviews_page:
    reviews_page = reviews_resource.list(packageName=package_name,
                               token=reviews_page["tokenPagination"]["nextPageToken"],
                               maxResults=100).execute()
    reviews_list.extend(reviews_page["reviews"])
    infinite_loop_canary -= 1
    if infinite_loop_canary < 0:
        break
Run Code Online (Sandbox Code Playgroud)

请记住 - 我发现,评论API只允许访问过去两周的评论评分.如果您想进行追溯分析,最好将评论评级作为csv文件从google-cloud中的帐户存储区中保存.

  • 使用Google评论API,我们可以看到任何应用的评论,还是只能查看我开发的应用的评论? (3认同)
  • 由于评论API需要身份验证并映射到项目,因此您只能查看Google Play开发者帐户中的应用 (3认同)

pee*_*kay 1

因此,当人们开始回答这个问题时,他们会向您指出以下 API:

标题:android-market-api。
链接: http: //code.google.com/p/android-market-api/

不幸的是,这个 API 很平庸,并且存在一些问题,我认为这些问题与 API 的开发人员无关,而是与 google 的交互有关。

我已经使用了这个 API,我编写的应用程序可以查找某些应用程序及其元数据,但其他应用程序只是不返回任何结果。我已经寻找这个问题的答案有一段时间了,但我还没有弄清楚。

祝你好运