We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 269a186 commit 96af309Copy full SHA for 96af309
src/Engine/GoogleSearch.php
@@ -2,6 +2,7 @@
2
3
namespace SerpScraper\Engine;
4
5
+use Curl\UserAgents;
6
use SerpScraper\SearchResponse;
7
8
class GoogleSearch extends SearchEngine
@@ -12,6 +13,9 @@ function __construct()
12
13
14
$this->preferences['results_per_page'] = 100;
15
$this->preferences['google_domain'] = 'google.com';
16
+
17
+ $agent = UserAgents::getRandomGsaUserAgent();
18
+ $this->getBrowser()->setUserAgent($agent);
19
}
20
21
private function getNextPage($html)
0 commit comments