This commit is contained in:
Mohamed jinas
2024-01-13 03:31:05 +05:00
parent 3114e12cc9
commit be67994a1f

View File

@@ -4,6 +4,7 @@ namespace App\Services\Scrapers;
use Goutte\Client; use Goutte\Client;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Symfony\Component\HttpClient\HttpClient;
class AdhadhuScraper class AdhadhuScraper
{ {
@@ -17,7 +18,11 @@ class AdhadhuScraper
public function __construct() public function __construct()
{ {
$this->client = new Client; $this->client = new Client(
HttpClient::create([
"proxy" => config('karudhaas.proxy.host')
])
);
} }
public function extract($url, $date = null) public function extract($url, $date = null)