爬山虎插件URL如何设置

Jason

问题描述

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.......

截图报错信息里报错文件相关代码

截图

585 1 0
1个回答

OhMangoCat

把。$this->newTaskRun()->createTask($task); 改为 $this->newTaskMan()->createTask($task);

  • 暂无评论
年代过于久远,无法发表回答
🔝