phpspider icon indicating copy to clipboard operation
phpspider copied to clipboard

我在on_fetch_url回调函数中,将当前页面抽取到url加入爬虫队列,发现这个url没有加入

Open beydeng opened this issue 6 years ago • 1 comments

$spider->on_fetch_url = function($url, $phpspider){ //这里对当前页面获取到的url加入爬虫队列中再次爬取 if (MyString::endWith($url,".html")){ $phpspider->add_url($url,[]); return $url; } };

好像提示 没有找到add_url这个方法,想请教下是什么原因

beydeng avatar Jan 11 '19 10:01 beydeng

这个方法是存在的,不应该啊

owner888 avatar Feb 25 '19 04:02 owner888