phpspider
phpspider copied to clipboard
我在on_fetch_url回调函数中,将当前页面抽取到url加入爬虫队列,发现这个url没有加入
$spider->on_fetch_url = function($url, $phpspider){ //这里对当前页面获取到的url加入爬虫队列中再次爬取 if (MyString::endWith($url,".html")){ $phpspider->add_url($url,[]); return $url; } };
好像提示 没有找到add_url这个方法,想请教下是什么原因
这个方法是存在的,不应该啊