From 47824ed278bc218ad18bcd971e8d5b4bef1bfa50 Mon Sep 17 00:00:00 2001 From: ziming Date: Tue, 14 Jun 2022 18:04:06 +0800 Subject: [PATCH] Add stealthProxy() and ownProxy() --- src/LaravelScrapingBee.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/LaravelScrapingBee.php b/src/LaravelScrapingBee.php index 99f5912..7a9300e 100644 --- a/src/LaravelScrapingBee.php +++ b/src/LaravelScrapingBee.php @@ -204,6 +204,26 @@ public function premiumProxy(): self return $this; } + /** + * https://www.scrapingbee.com/documentation/#stealth_proxy + */ + public function stealthProxy(): self + { + $this->params['stealth_proxy'] = true; + + return $this; + } + + /** + * https://www.scrapingbee.com/documentation/#own_proxy + */ + public function ownProxy(string $proxy): self + { + $this->params['own_proxy'] = $proxy; + + return $this; + } + /** * https://www.scrapingbee.com/documentation/#javascript-rendering */