我已經用我的項目打了另一個障礙,我正在使用simple_html_dom,並且似乎無法針對這兩點數據。我從https://survivetheark.com/index.php?/forums/topic/49912-vote-on-maps/定位幫助!嘗試使用simple_html_dom來抓取兩點數據
這裏是我放在一起的代碼,以獲得在右邊的數字,但似乎無法甚至能夠以此爲目標。
<?php
include 'simple_html_dom.php';
$html = file_get_contents('https://survivetheark.com/index.php?/forums/topic/49912-vote-on-maps/');
$yourDesiredContent = $html->find('us.ipsList_reset.cPollList_choices li',8);
echo $yourDesiredContent;
?>
謝謝!
試試這個..更新結束 –