dqtu14636 2014-03-10 19:20
浏览 33

Google Play刮刀

I'm trying to develop a Play Store reviews scraper in PHP and I need to make a POST request to this URL https://play.google.com/store/getreviews, and I saw the parameter post with firebug.

I am using Goutte library and here is my code:

require_once 'goutte.phar';
use Goutte\Client;    

$client = new Client();

$params = Array(
    "id"      => "com.trello",
    "pageNum" => 2         ,
    "reviewSortOrder" => 2 ,
    "reviewType"   => 0,
    "xhr" => 1
);

$crawler = $client->request('POST' , 'https://play.google.com/store/getreviews', $params);

The problem is that the request returns nothing. Is there anyone who already faced this problem and solved it?

  • 写回答

2条回答 默认 最新

  • dounielong7728 2014-04-23 01:14
    关注

    I don't think this is possible. Google Play changed their review interface last year. They now have a "token" parameter which is missing here. I have worked before to try and work out what seeds this (see Google play review scraping changes) but I can't figure it out. After a number of attempts to hit that webservice with an incorrect request (presumably without the token) Google Play starts blocking your IP, that's why you'll be getting nothing back after a while (and won't be able to open Google Play in your browser either). If you find a solution, let me know!

    评论

报告相同问题?

悬赏问题

  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP