simple html dom failed to open stream für eine Website

Ich versuche zu analysieren, durch http://whatismyip.com Seite und meine Lage (Staat und Land). Die Daten zu sein scheint, innerhalb <table class="table"> tags, also ich bin auf der Suche nach "Tabelle".
Aber ich bekomme einen Fehler Warning: file_get_contents(https://whatismyip.com): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in C:\xampp4\htdocs\scraping\libs\simple_html_dom.php on line 1081

Kann nicht herausfinden, was falsch ist.

 <?php
        require_once('libs/simple_html_dom.php');
        $html=new simple_html_dom();

        $html->load_file('https://whatismyip.com');

        $element=$html->find("table");


    ?>
  • Sieht aus wie whatismyip.com blockt Sie ab, es zu tun
InformationsquelleAutor parsecer | 2016-05-24
Schreibe einen Kommentar