Bonjour,有沒有人知道創建一個蜘蛛的方式,就好像它已啓用JavaScript的?php抓取 - 啓用javascript
PHP代碼:
file_get_contents("http://www.google.co.uk/search?hl=en&q=".$keyword."&start=".($x*10)."&sa=N")
它將檢索頁面的輸出。 如果使用, PHP代碼:
file_get_contents("http://www.facebook.com/something/something.something.php")
(im not sure i just know face book is a good example)
它將返回trhe輸出,即時猜測將包括大致爲「你必須啓用繼續JavaScript的」線的東西,因爲它是一個JavaScript手術部位(未無障礙)。
編輯: PHP代碼: 剛纔檢查
$link = "http://www.facebook.com/index.php";
$contents = file_get_contents($link);
echo $contents;
回報: 您使用的是不兼容的Web瀏覽器。
對不起,不足以支持您的瀏覽器。請保持它與以下瀏覽器的一個真實:
* Mozilla Firefox
* Safari
* Microsoft Internet Explorer
,我通過所有上述瀏覽器 測試?