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