gpt4 book ai didi

python - 如何从Playstore中的应用程序获取权限信息?

转载 作者:行者123 更新时间:2023-11-28 22:45:17 26 4
gpt4 key购买 nike

我正在开发一个 python 爬虫来从 Play 商店中的应用程序中检索一些信息。我的爬虫检索应用评级、开发者等,但不检索权限。那是因为谷歌使用了假链接并且没有 html 可以捕获。有谁知道如何获得这些信息?欢迎任何帮助!

提前致谢。

最佳答案

通过抓取 Play 商店页面无法获取权限详细信息。

必须使用检查工具(我用的是mozilla)。正如您上面提到的,如果您尝试检查按钮元素,您将看到假链接类 =“内容 id-view-permissions-details 假链接”。但是如果您点击“查看详细信息”链接,并检查出现的弹出窗口,您会发现这个元素:class="permissions-container bucket-style"如果您选择右键单击并选择“编辑为 HTML”,您将看到所需的所有信息:

     <div tabindex="0" jstcache="71" class="permissions-container bucket-style"> <div jstcache="72" class="permissions-heading" style="display:none"> This app has access to: </div> <div jstcache="73" class="permissions-heading"> Version <jsl jstcache="74">1.50.2</jsl> can access: </div> <div jstcache="75" jsinstance="0" class="permission-bucket"> <div jstcache="87" class="bucket-icon-and-title"> <jsl jstcache="110"><jsl jstcache="111"> <span class="icon billing"></span> <span class="bucket-title"> In-app purchases </span> </jsl><jsl jstcache="112" style="display:none"> <span class="icon history"></span> <span class="bucket-title"> Device &amp; app history </span> </jsl><jsl jstcache="113" style="display:none"> <span class="icon cellular-data"></span> <span class="bucket-title"> Cellular data settings </span> </jsl><jsl jstcache="114" style="display:none"> <span class="icon identity"></span> <span class="bucket-title"> Identity </span> </jsl><jsl jstcache="115" style="display:none"> <span class="icon calendar"></span> <span class="bucket-title"> Calendar </span> </jsl><jsl jstcache="116" style="display:none"> <span class="icon contacts"></span> <span class="bucket-title"> Contacts </span> </jsl><jsl jstcache="117" style="display:none"> <span class="icon location"></span> <span class="bucket-title"> Location </span> </jsl><jsl jstcache="118" style="display:none"> <span class="icon sms"></span> <span class="bucket-title"> SMS </span> </jsl><jsl jstcache="119" style="display:none"> <span class="icon phone"></span> <span class="bucket-title"> Phone </span> </jsl><jsl jstcache="120" style="display:none"> <span class="icon files"></span> <span class="bucket-title"> Photos/Media/Files </span> </jsl><jsl jstcache="121" style="display:none"> <span class="icon storage"></span> <span class="bucket-title"> Storage </span> </jsl><jsl jstcache="122" style="display:none"> <span class="icon camera"></span> <span class="bucket-title"> Camera </span> </jsl><jsl jstcache="123" style="display:none"> <span class="icon mic"></span> <span class="bucket-title"> Microphone </span> </jsl><jsl jstcache="124" style="display:none"> <span class="icon device-id-call"></span> <span class="bucket-title"> Device ID &amp; call information </span> </jsl><jsl jstcache="125" style="display:none"> <span class="icon wifi-state"></span> <span class="bucket-title"> Wi-Fi connection information </span> </jsl><jsl jstcache="126" style="display:none"> <span class="icon wearable"></span> <span jstcache="127" class="bucket-title" style="display:none"> Wearable sensors/Activity data </span> <span jstcache="128" class="bucket-title" style="display:none"> Body sensors </span> </jsl></jsl> </div> <div jstcache="88" style="display:none"></div> <ul jstcache="89" class="bucket-description"> <li jstcache="90" style="display:none"></li> </ul> </div><div jstcache="75" jsinstance="1" class="permission-bucket"> <div jstcache="87" class="bucket-icon-and-title"> <jsl jstcache="110"><jsl jstcache="111" style="display:none"> <span class="icon billing"></span> <span class="bucket-title"> In-app purchases </span> </jsl><jsl jstcache="112"> <span class="icon history"></span> <span class="bucket-title"> Device &amp; app history </span> </jsl><jsl jstcache="113" style="display:none"> <span class="icon cellular-data"></span> <span class="bucket-title"> Cellular data settings </span> </jsl><jsl jstcache="114" style="display:none"> <span class="icon identity"></span> <span class="bucket-title"> Identity </span> </jsl><jsl jstcache="115" style="display:none"> <span class="icon calendar"></span> <span class="bucket-title"> Calendar </span> </jsl><jsl jstcache="116" style="display:none"> <span class="icon contacts"></span> <span class="bucket-title"> Contacts </span> </jsl><jsl jstcache="117" style="display:none"> <span class="icon location"></span> <span class="bucket-title"> Location </span> </jsl><jsl jstcache="118" style="display:none"> <span class="icon sms"></span> <span class="bucket-title"> SMS </span> </jsl><jsl jstcache="119" style="display:none"> <span class="icon phone"></span> <span class="bucket-title"> Phone </span> </jsl><jsl jstcache="120" style="display:none"> <span class="icon files"></span> <span class="bucket-title"> Photos/Media/Files </span> </jsl><jsl jstcache="121" style="display:none"> <span class="icon storage"></span> <span class="bucket-title"> Storage </span> </jsl><jsl jstcache="122" style="display:none"> <span class="icon camera"></span> <span class="bucket-title"> Camera </span> </jsl><jsl jstcache="123" style="display:none"> <span class="icon mic"></span> <span class="bucket-title"> Microphone </span> </jsl><jsl jstcache="124" style="display:none"> <span class="icon device-id-call"></span> <span class="bucket-title"> Device ID &amp; call information </span> </jsl><jsl jstcache="125" style="display:none"> <span class="icon wifi-state"></span> <span class="bucket-title"> Wi-Fi connection information </span> </jsl><jsl jstcache="126" style="display:none"> <span class="icon wearable"></span> <span jstcache="127" class="bucket-title" style="display:none"> Wearable sensors/Activity data </span> <span jstcache="128" class="bucket-title" style="display:none"> Body sensors </span> </jsl></jsl> </div> <div jstcache="88" style="display:none"></div> <ul jstcache="89" class="bucket-description"> <li jstcache="90" jsinstance="*0">retrieve running apps</li> </ul> </div><div jstcache="75" jsinstance="2" class="permission-bucket"> <div jstcache="87" class="bucket-icon-and-title"> <jsl jstcache="110"><jsl jstcache="111" style="display:none"> <span class="icon billing"></span> <span class="bucket-title"> In-app purchases </span> </jsl><jsl jstcache="112" style="display:none"> <span class="icon history"></span> <span class="bucket-title"> Device &amp; app history </span> </jsl><jsl jstcache="113" style="display:none"> <span class="icon cellular-data"></span> <span class="bucket-title"> Cellular data settings </span> </jsl><jsl jstcache="114"> <span class="icon identity"></span> <span class="bucket-title"> Identity </span> </jsl><jsl jstcache="115" style="display:none"> <span class="icon calendar"></span> <span class="bucket-title"> Calendar </span> </jsl><jsl jstcache="116" style="display:none"> <span class="icon contacts"></span> <span class="bucket-title"> Contacts </span> </jsl><jsl jstcache="117" style="display:none"> <span class="icon location"></span> <span class="bucket-title"> Location </span> </jsl><jsl jstcache="118" style="display:none"> <span class="icon sms"></span> <span class="bucket-title"> SMS </span> </jsl><jsl jstcache="119" style="display:none"> <span class="icon phone"></span> <span class="bucket-title"> Phone </span> </jsl><jsl jstcache="120" style="display:none"> <span class="icon files"></span> <span class="bucket-title"> Photos/Media/Files </span> </jsl><jsl jstcache="121" style="display:none"> <span class="icon storage"></span> <span class="bucket-title"> Storage </span> </jsl><jsl jstcache="122" style="display:none"> <span class="icon camera"></span> <span class="bucket-title"> Camera </span> </jsl><jsl jstcache="123" style="display:none"> <span class="icon mic"></span> <span class="bucket-title"> Microphone </span> </jsl><jsl jstcache="124" style="display:none"> <span class="icon device-id-call"></span> <span class="bucket-title"> Device ID &amp; call information </span> </jsl><jsl jstcache="125" style="display:none"> <span class="icon wifi-state"></span> <span class="bucket-title"> Wi-Fi connection information </span> </jsl><jsl jstcache="126" style="display:none"> <span class="icon wearable"></span> <span jstcache="127" class="bucket-title" style="display:none"> Wearable sensors/Activity data </span> <span jstcache="128" class="bucket-title" style="display:none"> Body sensors </span> </jsl></jsl> </div> <div jstcache="88" style="display:none"></div> <ul jstcache="89" class="bucket-description"> <li jstcache="90" jsinstance="*0">find accounts on the device</li> </ul> </div><div jstcache="75" jsinstance="3" class="permission-bucket"> <div jstcache="87" class="bucket-icon-and-title"> <jsl jstcache="110"><jsl jstcache="111" style="display:none"> <span class="icon billing"></span> <span class="bucket-title"> In-app purchases </span> </jsl><jsl jstcache="112" style="display:none"> <span class="icon history"></span> <span class="bucket-title"> Device &amp; app history </span> </jsl><jsl jstcache="113" style="display:none"> <span class="icon cellular-data"></span> <span class="bucket-title"> Cellular data settings </span> </jsl><jsl jstcache="114" style="display:none"> <span class="icon identity"></span> <span class="bucket-title"> Identity </span> </jsl><jsl jstcache="115" style="display:none"> <span class="icon calendar"></span> <span class="bucket-title"> Calendar </span> </jsl><jsl jstcache="116"> <span class="icon contacts"></span> <span class="bucket-title"> Contacts </span> </jsl><jsl jstcache="117" style="display:none"> <span class="icon location"></span> <span class="bucket-title"> Location </span> </jsl><jsl jstcache="118" style="display:none"> <span class="icon sms"></span> <span class="bucket-title"> SMS </span> </jsl><jsl jstcache="119" style="display:none"> <span class="icon phone"></span> <span class="bucket-title"> Phone </span> </jsl><jsl jstcache="120" style="display:none"> <span class="icon files"></span> <span class="bucket-title"> Photos/Media/Files </span> </jsl><jsl jstcache="121" style="display:none"> <span class="icon storage"></span> <span class="bucket-title"> Storage </span> </jsl><jsl jstcache="122" style="display:none"> <span class="icon camera"></span> <span class="bucket-title"> Camera </span> </jsl><jsl jstcache="123" style="display:none"> <span class="icon mic"></span> <span class="bucket-title"> Microphone </span> </jsl><jsl jstcache="124" style="display:none"> <span class="icon device-id-call"></span> <span class="bucket-title"> Device ID &amp; call information </span> </jsl><jsl jstcache="125" style="display:none"> <span class="icon wifi-state"></span> <span class="bucket-title"> Wi-Fi connection information </span> </jsl><jsl jstcache="126" style="display:none"> <span class="icon wearable"></span> <span jstcache="127" class="bucket-title" style="display:none"> Wearable sensors/Activity data </span> <span jstcache="128" class="bucket-title" style="display:none"> Body sensors </span> </jsl></jsl> </div> <div jstcache="88" style="display:none"></div> <ul jstcache="89" class="bucket-description"> <li jstcache="90" jsinstance="*0">find accounts on the device</li> </ul> </div><div jstcache="75" jsinstance="4" class="permission-bucket"> <div jstcache="87" class="bucket-icon-and-title"> <jsl jstcache="110"><jsl jstcache="111" style="display:none"> <span class="icon billing"></span> <span class="bucket-title"> In-app purchases </span> </jsl><jsl jstcache="112" style="display:none"> <span class="icon history"></span> <span class="bucket-title"> Device &amp; app history </span> </jsl><jsl jstcache="113" style="display:none"> <span class="icon cellular-data"></span> <span class="bucket-title"> Cellular data settings </span> </jsl><jsl jstcache="114" style="display:none"> <span class="icon identity"></span> <span class="bucket-title"> Identity </span> </jsl><jsl jstcache="115" style="display:none"> <span class="icon calendar"></span> <span class="bucket-title"> Calendar </span> </jsl><jsl jstcache="116" style="display:none"> <span class="icon contacts"></span> <span class="bucket-title"> Contacts </span> </jsl><jsl jstcache="117" style="display:none"> <span class="icon location"></span> <span class="bucket-title"> Location </span> </jsl><jsl jstcache="118" style="display:none"> <span class="icon sms"></span> <span class="bucket-title"> SMS </span> </jsl><jsl jstcache="119"> <span class="icon phone"></span> <span class="bucket-title"> Phone </span> </jsl><jsl jstcache="120" style="display:none"> <span class="icon files"></span> <span class="bucket-title"> Photos/Media/Files </span> </jsl><jsl jstcache="121" style="display:none"> <span class="icon storage"></span> <span class="bucket-title"> Storage </span> </jsl><jsl jstcache="122" style="display:none"> <span class="icon camera"></span> <span class="bucket-title"> Camera </span> </jsl><jsl jstcache="123" style="display:none"> <span class="icon mic"></span> <span class="bucket-title"> Microphone </span> </jsl><jsl jstcache="124" style="display:none"> <span class="icon device-id-call"></span> <span class="bucket-title"> Device ID &amp; call information </span> </jsl><jsl jstcache="125" style="display:none"> <span class="icon wifi-state"></span> <span class="bucket-title"> Wi-Fi connection information </span> </jsl><jsl jstcache="126" style="display:none"> <span class="icon wearable"></span> <span jstcache="127" class="bucket-title" style="display:none"> Wearable sensors/Activity data </span> <span jstcache="128" class="bucket-title" style="display:none"> Body sensors </span> </jsl></jsl> </div> <div jstcache="88" style="display:none"></div> <ul jstcache="89" class="bucket-description"> <li jstcache="90" jsinstance="*0">read phone status and identity</li> </ul> </div><div jstcache="75" jsinstance="5" class="permission-bucket"> <div jstcache="87" class="bucket-icon-and-title"> <jsl jstcache="110"><jsl jstcache="111" style="display:none"> <span class="icon billing"></span> <span class="bucket-title"> In-app purchases </span> </jsl><jsl jstcache="112" style="display:none"> <span class="icon history"></span> <span class="bucket-title"> Device &amp; app history </span> </jsl><jsl jstcache="113" style="display:none"> <span class="icon cellular-data"></span> <span class="bucket-title"> Cellular data settings </span> </jsl><jsl jstcache="114" style="display:none"> <span class="icon identity"></span> <span class="bucket-title"> Identity </span> </jsl><jsl jstcache="115" style="display:none"> <span class="icon calendar"></span> <span class="bucket-title"> Calendar </span> </jsl><jsl jstcache="116" style="display:none"> <span class="icon contacts"></span> <span class="bucket-title"> Contacts </span> </jsl><jsl jstcache="117" style="display:none"> <span class="icon location"></span> <span class="bucket-title"> Location </span> </jsl><jsl jstcache="118" style="display:none"> <span class="icon sms"></span> <span class="bucket-title"> SMS </span> </jsl><jsl jstcache="119" style="display:none"> <span class="icon phone"></span> <span class="bucket-title"> Phone </span> </jsl><jsl jstcache="120"> <span class="icon files"></span> <span class="bucket-title"> Photos/Media/Files </span> </jsl><jsl jstcache="121" style="display:none"> <span class="icon storage"></span> <span class="bucket-title"> Storage </span> </jsl><jsl jstcache="122" style="display:none"> <span class="icon camera"></span> <span class="bucket-title"> Camera </span> </jsl><jsl jstcache="123" style="display:none"> <span class="icon mic"></span> <span class="bucket-title"> Microphone </span> </jsl><jsl jstcache="124" style="display:none"> <span class="icon device-id-call"></span> <span class="bucket-title"> Device ID &amp; call information </span> </jsl><jsl jstcache="125" style="display:none"> <span class="icon wifi-state"></span> <span class="bucket-title"> Wi-Fi connection information </span> </jsl><jsl jstcache="126" style="display:none"> <span class="icon wearable"></span> <span jstcache="127" class="bucket-title" style="display:none"> Wearable sensors/Activity data </span> <span jstcache="128" class="bucket-title" style="display:none"> Body sensors </span> </jsl></jsl> </div> <div jstcache="88" style="display:none"></div> <ul jstcache="89" class="bucket-description"> <li jstcache="90" jsinstance="0">modify or delete the contents of your USB storage</li><li jstcache="90" jsinstance="*1">read the contents of your USB storage</li> </ul> </div><div jstcache="75" jsinstance="6" class="permission-bucket"> <div jstcache="87" class="bucket-icon-and-title"> <jsl jstcache="110"><jsl jstcache="111" style="display:none"> <span class="icon billing"></span> <span class="bucket-title"> In-app purchases </span> </jsl><jsl jstcache="112" style="display:none"> <span class="icon history"></span> <span class="bucket-title"> Device &amp; app history </span> </jsl><jsl jstcache="113" style="display:none"> <span class="icon cellular-data"></span> <span class="bucket-title"> Cellular data settings </span> </jsl><jsl jstcache="114" style="display:none"> <span class="icon identity"></span> <span class="bucket-title"> Identity </span> </jsl><jsl jstcache="115" style="display:none"> <span class="icon calendar"></span> <span class="bucket-title"> Calendar </span> </jsl><jsl jstcache="116" style="display:none"> <span class="icon contacts"></span> <span class="bucket-title"> Contacts </span> </jsl><jsl jstcache="117" style="display:none"> <span class="icon location"></span> <span class="bucket-title"> Location </span> </jsl><jsl jstcache="118" style="display:none"> <span class="icon sms"></span> <span class="bucket-title"> SMS </span> </jsl><jsl jstcache="119" style="display:none"> <span class="icon phone"></span> <span class="bucket-title"> Phone </span> </jsl><jsl jstcache="120" style="display:none"> <span class="icon files"></span> <span class="bucket-title"> Photos/Media/Files </span> </jsl><jsl jstcache="121"> <span class="icon storage"></span> <span class="bucket-title"> Storage </span> </jsl><jsl jstcache="122" style="display:none"> <span class="icon camera"></span> <span class="bucket-title"> Camera </span> </jsl><jsl jstcache="123" style="display:none"> <span class="icon mic"></span> <span class="bucket-title"> Microphone </span> </jsl><jsl jstcache="124" style="display:none"> <span class="icon device-id-call"></span> <span class="bucket-title"> Device ID &amp; call information </span> </jsl><jsl jstcache="125" style="display:none"> <span class="icon wifi-state"></span> <span class="bucket-title"> Wi-Fi connection information </span> </jsl><jsl jstcache="126" style="display:none"> <span class="icon wearable"></span> <span jstcache="127" class="bucket-title" style="display:none"> Wearable sensors/Activity data </span> <span jstcache="128" class="bucket-title" style="display:none"> Body sensors </span> </jsl></jsl> </div> <div jstcache="88" style="display:none"></div> <ul jstcache="89" class="bucket-description"> <li jstcache="90" jsinstance="0">modify or delete the contents of your USB storage</li><li jstcache="90" jsinstance="*1">read the contents of your USB storage</li> </ul> </div><div jstcache="75" jsinstance="7" class="permission-bucket"> <div jstcache="87" class="bucket-icon-and-title"> <jsl jstcache="110"><jsl jstcache="111" style="display:none"> <span class="icon billing"></span> <span class="bucket-title"> In-app purchases </span> </jsl><jsl jstcache="112" style="display:none"> <span class="icon history"></span> <span class="bucket-title"> Device &amp; app history </span> </jsl><jsl jstcache="113" style="display:none"> <span class="icon cellular-data"></span> <span class="bucket-title"> Cellular data settings </span> </jsl><jsl jstcache="114" style="display:none"> <span class="icon identity"></span> <span class="bucket-title"> Identity </span> </jsl><jsl jstcache="115" style="display:none"> <span class="icon calendar"></span> <span class="bucket-title"> Calendar </span> </jsl><jsl jstcache="116" style="display:none"> <span class="icon contacts"></span> <span class="bucket-title"> Contacts </span> </jsl><jsl jstcache="117" style="display:none"> <span class="icon location"></span> <span class="bucket-title"> Location </span> </jsl><jsl jstcache="118" style="display:none"> <span class="icon sms"></span> <span class="bucket-title"> SMS </span> </jsl><jsl jstcache="119" style="display:none"> <span class="icon phone"></span> <span class="bucket-title"> Phone </span> </jsl><jsl jstcache="120" style="display:none"> <span class="icon files"></span> <span class="bucket-title"> Photos/Media/Files </span> </jsl><jsl jstcache="121" style="display:none"> <span class="icon storage"></span> <span class="bucket-title"> Storage </span> </jsl><jsl jstcache="122" style="display:none"> <span class="icon camera"></span> <span class="bucket-title"> Camera </span> </jsl><jsl jstcache="123" style="display:none"> <span class="icon mic"></span> <span class="bucket-title"> Microphone </span> </jsl><jsl jstcache="124" style="display:none"> <span class="icon device-id-call"></span> <span class="bucket-title"> Device ID &amp; call information </span> </jsl><jsl jstcache="125"> <span class="icon wifi-state"></span> <span class="bucket-title"> Wi-Fi connection information </span> </jsl><jsl jstcache="126" style="display:none"> <span class="icon wearable"></span> <span jstcache="127" class="bucket-title" style="display:none"> Wearable sensors/Activity data </span> <span jstcache="128" class="bucket-title" style="display:none"> Body sensors </span> </jsl></jsl> </div> <div jstcache="88" style="display:none"></div> <ul jstcache="89" class="bucket-description"> <li jstcache="90" jsinstance="*0">view Wi-Fi connections</li> </ul> </div><div jstcache="75" jsinstance="*8" class="permission-bucket"> <div jstcache="87" class="bucket-icon-and-title"> <jsl jstcache="110"><jsl jstcache="111" style="display:none"> <span class="icon billing"></span> <span class="bucket-title"> In-app purchases </span> </jsl><jsl jstcache="112" style="display:none"> <span class="icon history"></span> <span class="bucket-title"> Device &amp; app history </span> </jsl><jsl jstcache="113" style="display:none"> <span class="icon cellular-data"></span> <span class="bucket-title"> Cellular data settings </span> </jsl><jsl jstcache="114" style="display:none"> <span class="icon identity"></span> <span class="bucket-title"> Identity </span> </jsl><jsl jstcache="115" style="display:none"> <span class="icon calendar"></span> <span class="bucket-title"> Calendar </span> </jsl><jsl jstcache="116" style="display:none"> <span class="icon contacts"></span> <span class="bucket-title"> Contacts </span> </jsl><jsl jstcache="117" style="display:none"> <span class="icon location"></span> <span class="bucket-title"> Location </span> </jsl><jsl jstcache="118" style="display:none"> <span class="icon sms"></span> <span class="bucket-title"> SMS </span> </jsl><jsl jstcache="119" style="display:none"> <span class="icon phone"></span> <span class="bucket-title"> Phone </span> </jsl><jsl jstcache="120" style="display:none"> <span class="icon files"></span> <span class="bucket-title"> Photos/Media/Files </span> </jsl><jsl jstcache="121" style="display:none"> <span class="icon storage"></span> <span class="bucket-title"> Storage </span> </jsl><jsl jstcache="122" style="display:none"> <span class="icon camera"></span> <span class="bucket-title"> Camera </span> </jsl><jsl jstcache="123" style="display:none"> <span class="icon mic"></span> <span class="bucket-title"> Microphone </span> </jsl><jsl jstcache="124"> <span class="icon device-id-call"></span> <span class="bucket-title"> Device ID &amp; call information </span> </jsl><jsl jstcache="125" style="display:none"> <span class="icon wifi-state"></span> <span class="bucket-title"> Wi-Fi connection information </span> </jsl><jsl jstcache="126" style="display:none"> <span class="icon wearable"></span> <span jstcache="127" class="bucket-title" style="display:none"> Wearable sensors/Activity data </span> <span jstcache="128" class="bucket-title" style="display:none"> Body sensors </span> </jsl></jsl> </div> <div jstcache="88" style="display:none"></div> <ul jstcache="89" class="bucket-description"> <li jstcache="90" jsinstance="*0">read phone status and identity</li> </ul> </div> <jsl jstcache="76"> <div class="permission-bucket"> <div class="bucket-icon-and-title"> <span class="icon other"></span> <span class="bucket-title"> Other </span> </div> <ul class="bucket-description"> <li jstcache="78" jsinstance="0">download files without notification</li><li jstcache="78" jsinstance="*1">receive data from Internet</li> <jsl jstcache="79" jsinstance="*0"> <li jstcache="80" jsinstance="0">full network access</li><li jstcache="80" jsinstance="1">Google Play license check</li><li jstcache="80" jsinstance="2">view network connections</li><li jstcache="80" jsinstance="3">connect and disconnect from Wi-Fi</li><li jstcache="80" jsinstance="4">prevent device from sleeping</li><li jstcache="80" jsinstance="*5">control vibration</li> </jsl> </ul> </div> </jsl> </div>

检索所需信息的最佳方法是对 url 执行 HTTP POST 请求:https://play.google.com/store/xhr/ructx?authuser=0带参数:

id "id=com.kiloo.subwaysurf"

xhr "1"

hl "en"//英文

您可以从检查工具中找到所有 header :

主机“play.google.com”

接受 "text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8"

CONTENT-TYPE "application/x-www-form-urlencoded;charset=utf-8"

推荐人“https://play.google.com/store/apps/details?id=com.kiloo.subwaysurf&hl=en

然后你可以使用任何你想发送 POST 请求的 API。为方便起见,我使用了 curl:

    curl --data "ids=com.kiloo.subwaysurf&xhr=1&hl=en" https://play.google.com/store/xhr/getdoc?authuser=0 --silent

但是 python 有一个很棒的 HTTP 请求 API。困难的部分是以自动方式解析响应。结果是 JSON,我不知道谷歌如何将它解析为人类可读的信息。

您还可以找到信息 here .

关于python - 如何从Playstore中的应用程序获取权限信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28761377/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com