我有一個腳本可以刪除一些舊的HTML。它每天約1000頁,並且每隔一段時間就扼流圈出於某種原因,並拋出了以下錯誤: PHP Catchable fatal error: Argument 1 passed to DOMXPath::__construct() must be an instance of DOMDocument, null given, called in /var/scraper
我想湊一個網站,以獲得一些實踐與QueryPath。 這裏是我到目前爲止,並給我一個錯誤: Creating default object from empty value 代碼: // URL to scrape
$baseurl = 'http://some-site-with-a-table-of-items-that-contain-links.com';
// Get all ro
我正在使用QueryPath從網站上抓取一些數據。但是,每隔一段時間我都會收到下面的錯誤消息,並且腳本終止。 PHP Catchable fatal error: Argument 1 passed to DOMXPath::__construct() must be an instance of DOMDocument, null given, called in ....inc/QueryPa