WIP
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
|
Reference in New Issue
Block a user