Spider Client

The client can add task information to spider service for crawling

SpiderClient::getInstance()->addJob('https://xxxxx','Other info’);

Supported methods

Add job
    public function addJob($url, $otherInfo)
Batch add job
    public function addJobs(array $jobsConfig)
    $jobsConfig = [
      [
        'url' => xxx,
        'otherInfo => xxx
      ],
      [
        'url' => xxx,
        'otherInfo => xxx
      ],
      [
        'url' => xxx,
        'otherInfo => xxx
      ]
    ];