title: Instagram Scraping in PHP
body: <p>I want to add a feature in my project of Instagram followers.</p>
  <pre><code>&lt;?php
      function callInstagram($url)
      {
          $ch = curl_init();
          curl_setopt_array($ch, array(
          CURLOPT_URL =&gt; $url,
          CURLOPT_RETURNTRANSFER =&gt; true,
          CURLOPT_SSL_VERIFYPEER =&gt; false,
          CURLOPT_SSL_VERIFYHOST =&gt; 2));
  
          $result = curl_exec($ch);
          curl_close($ch);
  
          return $result;
      }
  
      $url = &quot;https://www.instagram.com/xyz/&quot;;
      $dom = new domDocument();  
      $dom-&gt;loadHTML($result); 
      $dom-&gt;preserveWhiteSpace = false; 
      $tables = $dom-&gt;getElementsByTagName('script type'); 
      ?&gt;
  </code></pre>
  <p>I am using DOM to get the content from HTML: <code>'script type'</code> onwards but not able to get it.</p>