title: How to scrape data from google play using php
body: <p>I have been trying to find a way to <strong>scrape</strong> data from google play but i can't ..
  I just want to <strong>scrape</strong> the app name , category , version and googleplay id.</p>
  <p>this is the code which is not working :-</p>
  <pre><code>&lt;?php $data =   file_get_contents('https://play.google.com/store/apps/details?id=com.com.com2us.kungfupet.normal2.freefull.google.global.android.common');
  $dom = new DOMDocument();
  @$dom-&gt;loadHTML($data);
  $xpath = new DOMXPath($dom);
  $query = '//span[starts-with(@itemprop, &quot;gen&quot;)]';
  foreach ($xpath-&gt;query($query) as $node) {
  echo $node-&gt;value, &quot;\n&quot;;
   } ?&gt;
  </code></pre>
  <p>How to make a program for the above purposes?</p>