This commit is contained in:
Mohamed jinas
2024-01-13 03:08:21 +05:00
parent 9c42a55f1e
commit 2bf4cddd46

View File

@@ -11,7 +11,15 @@ class AdhadhuFeed implements Feed
public function __construct()
{
$this->client = new Client();
$client = new Client();
$guzzleClient = new \GuzzleHttp\Client([
"proxy" => config('karudhaas.proxy.host')
]);
$client->setClient($guzzleClient);
$this->client = $client;
}
/**
@@ -21,9 +29,7 @@ class AdhadhuFeed implements Feed
*/
public function get(): array
{
$crawler = $this->client->request('GET', "https://adhadhu.com/category/News", [
"proxy" => config('karudhaas.proxy.host')
]);
$crawler = $this->client->request('GET', "https://adhadhu.com/category/News");
$feeds = [];