title: Get page source of an iframe after loading its contents
body: <p>I am <strong>scraping</strong> a video URL from an iframe. I am using file_get_contents('iframe_url'). But I am getting only contents before page load.
  For example,</p>
  <pre><code>&lt;textarea&gt;&lt;?php echo file_get_html('https://www.xvideos.com/embedframe/26922703'); ?&gt;&lt;/textarea&gt;
  </code></pre>
  <p>I am getting only</p>
  <pre><code>&lt;img src='http://static-ss.xvideos-cdn.com/v3/img/skins/default/xvideos.com.png' /&gt;&lt;div style='background-color: #FFF'&gt;&lt;h1&gt;Please find this video on &lt;a href='https://xvideos.com' target='_blank'&gt;xvideos.com&lt;/a&gt; or &lt;a href='https://xvideos.net' target='_blank'&gt;xvideos.net&lt;/a&gt;&lt;/h1&gt;&lt;/div&gt;
  </code></pre>
  <p>But when I right-click on the iframe and click view frame source, then I get the full page source.
  So, how to get the iframe page source using PHP after loading its javascript document.</p>
  <p>Any help is appreciated.</p>