roach-php / core

The complete web scraping toolkit for PHP.

Home Page:https://roach-php.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parameter type requirements

ZhangChengLin opened this issue · comments

commented

public int $requestDelay = 1;

The $requestDelay attribute is expected to support expressions, and the target needs to be a specified range of random values ​​(including non-integer numbers).


public function setDelay(int $delay): self;

The parameter type of setDelay is expected to support non-integer formats.

commented

By the way, why is the default concurrency here so high?

public int $concurrency = 25,