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
107107 }
108108
109109 /**
110- * https://www.scrapingbee.com/documentation/#custom- cookies
110+ * https://www.scrapingbee.com/documentation/#cookies
111111 */
112112 public function setCustomCookies (array $ cookies ): self
113113 {
@@ -201,6 +201,23 @@ public function jsonResponse(): self
201201 return $ this ;
202202 }
203203
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+
204221 /**
205222 * https://www.scrapingbee.com/documentation/#javascript-execution
206223 */
You can’t perform that action at this time.
0 commit comments