diff --git a/app/Services/Feeds/AdhadhuFeed.php b/app/Services/Feeds/AdhadhuFeed.php index 073575f..49f883b 100644 --- a/app/Services/Feeds/AdhadhuFeed.php +++ b/app/Services/Feeds/AdhadhuFeed.php @@ -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 = [];