simple-html-dom

    1熱度

    1回答

    <html> <body> <p class="class1" id="id1" > some data 1</p> <p class="class1" id="id2" > some data 2</p> <p class="class1" id="id3" > some data 3</p> </body> </html> 在JavaScript中獲取任何元素,像下面的代碼

    0熱度

    4回答

    $(window).on("load", function(){ var token_val= document.getElementsByName("token")[0].value; var real_data = "<input type='hidden' name='token' value='NEED VLAUE OF token_val HERE'>";

    0熱度

    1回答

    嘿傢伙有人能解釋爲什麼事件不執行? 調試器根本不會給出任何錯誤! 預先感謝您 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <button class="boton">prueba</button> <body> <scri

    1熱度

    1回答

    你好我主持我的網站到一個免費的託管網站(5gbfree.com),我在這裏創建一個函數,它可以從網站http://ppa.com.ph??q=fcer_view那裏檢索比索美元的價格只需選擇a.active元素並以明文形式獲取該值。它昨天正在工作,但當我今天早上再次檢查它時,它未能取回。因此,這將返回默認值是50 error_log中: [09-Apr-2017 13:49:32 Asia/Man

    1熱度

    1回答

    我在使用HTML DOM時遇到了某些網頁的問題。我設置了用戶代理並打開一個流,但響應似乎是空的。 我注意到這些網頁的一些內容是HTML中有未封閉的標籤。這可能會影響簡單的HTML DOM? 我的代碼是: <?php include_once 'simple_html_dom.php'; $url_to_compare = 'http://www.idigic.net/buy-instagr

    1熱度

    1回答

    我使用PHP和簡單的HTML DOM解析器試圖抓住網站上的歌詞。歌詞與類歌詞「歌詞」一起保存在一個div中。這裏是我用來試圖抓住div並顯示它的代碼。目前它只在我的網頁上返回「Array」。當我對數組進行jsonify時,我可以看到數組是空的。 <?php include('simple_html_dom.php'); $data = file_get_contents("https://ex

    0熱度

    2回答

    爲什麼簡單的HTML DOM無法在此代碼中工作?這是一個錯誤嗎?以前我從來沒有遇到過這樣的問題。 該HTML代碼太大,不能在這裏發佈。 file.php <?php require_once './simple_html_dom.php'; $html = file_get_html('http://sitelab.combr.co/codenotwork.html'); var_dump

    0熱度

    1回答

    我需要找到一個HTML輸入是在HTML註釋部分 <!-- <input type="hidden" name="ab_cde" value="12345" /> --> 代碼 foreach($html->find('input') as $element) { } 不工作找到它。如何做呢?

    -1熱度

    1回答

    我刮這個網址,因爲它是我最後一年的項目,但這段代碼只報廢1頁的搜索查詢我希望分頁(如1,2,3,4,5)最後請幫助 我已經實現了一個使用CURL獲取數據的數據抓取腳本。 但是,抓取記錄只有一個頁面,但我想要所有的數據,因爲在那個頁面分頁。 <form action="" method="post" class="form-horizontal" id="home-search"> <input

    0熱度

    1回答

    <html> <div class="product-tile "> <div class="product-image"> <img src="1.jpg"> <img src="2.jpg"> </div> <div class="brand"> <a href="ex