File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,16 @@ public function search(string $query): self
55
55
return $ this ;
56
56
}
57
57
58
+ /**
59
+ * https://www.scrapingbee.com/documentation/google/#search_type
60
+ */
61
+ public function searchType (string $ type ): self
62
+ {
63
+ $ this ->params ['search_type ' ] = $ type ;
64
+
65
+ return $ this ;
66
+ }
67
+
58
68
/**
59
69
* https://www.scrapingbee.com/documentation/google/#country_code
60
70
*/
@@ -115,6 +125,17 @@ public function addHtml(): self
115
125
return $ this ;
116
126
}
117
127
128
+ /*
129
+ * If the API hasn't caught up and you need to support a new ScrapingBee parameter,
130
+ * you can set it using this method.
131
+ */
132
+ public function setParam (string $ key , mixed $ value ): self
133
+ {
134
+ $ this ->params [$ key ] = $ value ;
135
+
136
+ return $ this ;
137
+ }
138
+
118
139
private function reset (): self
119
140
{
120
141
$ this ->params = [];
You can’t perform that action at this time.
0 commit comments