无法从Google Play获取应用的上次更新日期

时间:2019-06-12 10:33:46

标签: java android jsoup

我想从Google Play获取应用程序的最后更新日期。

我已经在StackOverflow(https://stackoverflow.com/a/36509726/10050477)上找到了这个答案,但这与获取应用程序版本有关。

我已将代码更改为:

 updateDate = Jsoup.connect("https://play.google.com/store/apps/details?id=com.tencent.ig&hl=en")
 .timeout(30000)
 .userAgent("Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv1.8.1.6) Gecko/20070725 Firefox/2.0.0.6")
 .referrer("http://www.google.com")
 .get()
 .select("div.hAyfc:nth-child(1) > span:nth-child(1) > div:nth-child(1) > span:nth-child(1)").toString();
 Log.d(TAG, updateDate);
} catch (IOException e) {
 e.printStackTrace();
}

但是结果丢失了,并且出现以下错误:W / ResourceType:获取资源号0x00000000的名称时没有包标识符

我尝试了多种选择文本的方法,但没有结果。

请帮帮我。

0 个答案:

没有答案