File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ Request body (full options):
105105 "max_retries" : 2 ,
106106 "wait_for_selector" : " h1" ,
107107 "wait_timeout_seconds" : 15 ,
108- "block_images" : false ,
108+ "block_images" : true ,
109109 "block_images_and_css" : false ,
110110 "wait_for_complete_page_load" : true ,
111111 "user_agent" : " Mozilla/5.0 ..." ,
@@ -126,7 +126,7 @@ Request options (contract):
126126- ` max_retries ` : ` 0..3 ` , default ` 2 ` (attempts = ` 1 + max_retries ` , with ` auto ` capped by 3 strategy steps).
127127- ` wait_for_selector ` : if set, response waits for selector before capture.
128128- ` wait_timeout_seconds ` : selector wait timeout (capped by service timeout).
129- - ` block_images ` : pass image blocking to driver.
129+ - ` block_images ` : pass image blocking to driver. Default ` true ` .
130130
131131Currently accepted passthrough options (implemented, not part of stable request-options contract):
132132
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class ScrapeRequest(BaseModel):
6464 ge = 1 ,
6565 le = DEFAULT_SCRAPE_TIMEOUT_SECONDS ,
6666 )
67- block_images : bool = False
67+ block_images : bool = True
6868 block_images_and_css : bool = False
6969 wait_for_complete_page_load : bool = True
7070 user_agent : Optional [str ] = None
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def test_request_defaults(self):
5959 payload = main .ScrapeRequest (url = "https://example.com" )
6060 self .assertEqual (payload .navigation_mode , "auto" )
6161 self .assertEqual (payload .max_retries , 2 )
62- self .assertFalse (payload .block_images )
62+ self .assertTrue (payload .block_images )
6363 self .assertFalse (payload .block_images_and_css )
6464 self .assertTrue (payload .wait_for_complete_page_load )
6565 self .assertIsNone (payload .user_agent )
You can’t perform that action at this time.
0 commit comments