Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I don't think there is an user-agent redirection on this web page since </p> <pre><code>&lt;?php if (isset($_GET['get'])){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://www.tvindiretta.com/m"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_exec($ch); $result = curl_exec ($ch); curl_close ($ch); print $result; } else{ ?&gt; &lt;!DOCTYPE HTML&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;/head&gt; &lt;body&gt; &lt;iframe src="test.php?get" style="position:absolute; top:100px; left:100px; width:400px; height:400px;"/&gt; &lt;/body&gt; &lt;/html&gt; &lt;?php } ?&gt; </code></pre> <p>Seems to screw the page, but provide me the mobile content anyway.</p> <p>So I guess the real problem here is the javascript code inside that page:</p> <p>In html5 you have a new <a href="http://www.w3schools.com/tags/att_iframe_sandbox.asp" rel="nofollow">iframe attribute</a> "sandbox" which allows you to restrict the iframe's content behaviour . Unfortunately this seems to be supported only by Chrome and Safari.</p> <p>One idea here could be to try to scrape the content of the web page (with <a href="http://php.net/manual/fr/class.domdocument.php" rel="nofollow">DomDocument</a> in PHP for instance), keep only the content in which you are interested, and try to reproduce their style. It may be easier to say than to do, but I can't see a cleaner way to do so.</p> <p>Since it seems you are interested in getting a TV program, you could check for a dedicated xml scaper <a href="http://wiki.xmltv.org/index.php/Main_Page" rel="nofollow">XMLtv</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload