siplify grapper ask for speed
This commit is contained in:
1 parent
8ec2203918
commit
d221ff6eac
36 files changed
+111
-18439
No files matched your search
@@ -7,7 +7,7 @@ trait CurlSofa
|
||||
protected function curl(string $url)
|
||||
{
|
||||
$headers = [
|
||||
'User-Agent: '.$this->useragent(),
|
||||
'User-Agent: ' . $this->useragent(),
|
||||
'Accept: */*',
|
||||
'Accept-Language: de,en-US;q=0.7,en;q=0.8',
|
||||
'Accept-Encoding: gzip, deflate, br, zstd',
|
||||
@@ -38,7 +38,6 @@ trait CurlSofa
|
||||
$data = json_decode($data, true);
|
||||
|
||||
return $data;
|
||||
|
||||
}
|
||||
|
||||
protected function useragent()
|
||||
@@ -60,7 +59,7 @@ trait CurlSofa
|
||||
return $array[array_rand($array)];
|
||||
}
|
||||
|
||||
protected function sleep($speed = false)
|
||||
protected function grapper_sleep($speed = false)
|
||||
{
|
||||
switch ($speed) {
|
||||
case 1:
|
||||
|
||||
Reference in new issue
Block a user