simple-html-dom

    0熱度

    2回答

    嘗試在php中篩選廢料內容並分配給數組。我需要使用的庫 'SimpltHTMLDom' REFFERENCE以下數據:Parse html table using file_get_contents to php array 期望的結果: 在<text>(CSS)醫院名稱的背景顏色(如果存在的!!!) 需要所有五個<text>(如空,如果沒有背景色) 陣列: Hospital 1 --> NU

    0熱度

    1回答

    需要更改由SimpleHtmlDom生成的數組格式的輸出。我的PHP代碼是。我使用的SimpleHtmlDom的結果是返回醫院名稱作爲關鍵不是值?: <?php require('simple_html_dom.php'); $table = array(); $html = file_get_html('https://www.miemssalert.com/chats/Default.

    -2熱度

    3回答

    我的HTML代碼,更好的方法是代碼重複16次: <div class="headline_image"> <a ga-cat="slideshow-view" ga-action="view-1" href="mylink"><img src="http://dd4994.jpg" width="420" height="323" align="right" alt="my text "/></

    0熱度

    2回答

    工作我使用抓取網站下面的代碼 require 'simple_html_dom.php'; $opts = array('http'=>array('header' => "User-Agent:MyAgent/1.0\r\n")); $context = stream_context_create($opts); $header = file_get_contents('http://w

    0熱度

    1回答

    我剛剛學習了關於simple_html_dom.php, 我試圖獲得一些類的h1內容。 <h1 class="entry-title">example for the header</h1> 這裏是我想要獲取內容的網站的原始html文件。 <header class="entry-header"> <div class="entry-meta"> <span class=

    0熱度

    1回答

    我試圖用舊的(死)torrentz.eu刮板碼報廢torrentz2.eu搜索結果: 當我運行http://localhost/jits/torz/api.php?key=kabali 它顯示我警告和空值。 Notice: Undefined variable: results_urls in /Applications/XAMPP/xamppfiles/htdocs/jits/torz/api.

    0熱度

    1回答

    我可以在結果中清楚地看到輸出結果之一是「一般」。當我試圖在我的「if語句」中過濾掉它時,它無法每次都抓住「一般」。我的「str_replace」是試圖擺脫任何可能導致問題的空白空間的結果。 代碼段: $tick = 0; foreach($html->find('select.js-career-select') as $info) { foreach($info->find('option

    1熱度

    1回答

    我正在嘗試爲Zoover(假日評論網站)構建一個真正簡約的API,並且我想加載推薦內容,但他們爲每個推薦內容創建了一個不同的ID。是否有人知道我如何能得到的li 這個ID是我已經代碼,這只是Echo的第一告別賽,因爲他們都有一個不同的ID: <?php include_once('libs/simple_html_dom.php'); $html = file_get_html("http:

    1熱度

    1回答

    我想從其他網站頁面中動態加載表格數據。 我使用Php和簡單的Html Dom搜刮很多搜索後沒有找到任何解決方案如何從網頁上抓取動態數據?或者有另一種方法可以做到這一點? 我必須從這個url->https://fantasy.premierleague.com/a/leagues/standings/313/classic刮表數據。 我正在使用下面的代碼來做到這一點。 $url = "https:/

    -4熱度

    1回答

    我試圖從類 <div class="pic" style="top:0px;left:0px;height:149px;" data= {"pic_id":"06e50224ab189";}" pic-descr=" this title " data-index="0"> .... </div> 如何找到並得到pic_id數據和pic-descr得到PIC標識和說明?