URL配置成:http://www.baidu.com/s?ie=utf-8&wd=shr-10a高速混合机 就会报URL配置无效
$task = array(
'url' => 'https://www.baidu.com/s?ie=utf-8&wd='.$keyword,
'rule' => array(
'content' => ['div#content_left div.result-op.c-container.xpath-log.new-pmd ul', 'html'],
),
'context' => array(
'cache_enabled' => true,
'cache_directory' => '/tmp/DownloadCache4PHPCreeper/download/',
'allow_url_repeat' => true,
),
);
2023-03-27 13:19:59.369644 | ERROR | Producer | plugin.blogdaren.webman-phpcreeper.myproducer | 01号进程 | 生产任务: 检测到任务URL配置无效, 请确认是否已经正确设置任务URL.......
把。$this->newTaskRun()->createTask($task); 改为 $this->newTaskMan()->createTask($task);