File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ public function allowResources(): self
107
107
}
108
108
109
109
/**
110
- * https://www.scrapingbee.com/documentation/#custom- cookies
110
+ * https://www.scrapingbee.com/documentation/#cookies
111
111
*/
112
112
public function setCustomCookies (array $ cookies ): self
113
113
{
@@ -201,6 +201,23 @@ public function jsonResponse(): self
201
201
return $ this ;
202
202
}
203
203
204
+ /**
205
+ * https://www.scrapingbee.com/documentation/#return_page_source
206
+ */
207
+ public function returnPageSource (): self
208
+ {
209
+ $ this ->params ['return_page_source ' ] = true ;
210
+
211
+ return $ this ;
212
+ }
213
+
214
+ public function scrapingConfig (string $ configName ): self
215
+ {
216
+ $ this ->params ['scraping_config ' ] = $ configName ;
217
+
218
+ return $ this ;
219
+ }
220
+
204
221
/**
205
222
* https://www.scrapingbee.com/documentation/#javascript-execution
206
223
*/
You can’t perform that action at this time.
0 commit comments