@@ -2186,6 +2186,7 @@ def web_scrape_html(
21862186 max_age_ms : int | Omit = omit ,
21872187 pdf : brand_web_scrape_html_params .Pdf | Omit = omit ,
21882188 timeout_ms : int | Omit = omit ,
2189+ use_main_content_only : bool | Omit = omit ,
21892190 wait_for_ms : int | Omit = omit ,
21902191 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
21912192 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2225,6 +2226,9 @@ def web_scrape_html(
22252226 than this value, it will be aborted with a 408 status code. Maximum allowed
22262227 value is 300000ms (5 minutes).
22272228
2229+ use_main_content_only: When true, return only the page's main content in the HTML response, excluding
2230+ headers, footers, sidebars, and navigation when detectable.
2231+
22282232 wait_for_ms:
22292233 Optional browser wait time in milliseconds after initial page load. Min: 0. Max:
22302234 30000 (30 seconds).
@@ -2254,6 +2258,7 @@ def web_scrape_html(
22542258 "max_age_ms" : max_age_ms ,
22552259 "pdf" : pdf ,
22562260 "timeout_ms" : timeout_ms ,
2261+ "use_main_content_only" : use_main_content_only ,
22572262 "wait_for_ms" : wait_for_ms ,
22582263 },
22592264 brand_web_scrape_html_params .BrandWebScrapeHTMLParams ,
@@ -4633,6 +4638,7 @@ async def web_scrape_html(
46334638 max_age_ms : int | Omit = omit ,
46344639 pdf : brand_web_scrape_html_params .Pdf | Omit = omit ,
46354640 timeout_ms : int | Omit = omit ,
4641+ use_main_content_only : bool | Omit = omit ,
46364642 wait_for_ms : int | Omit = omit ,
46374643 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
46384644 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4672,6 +4678,9 @@ async def web_scrape_html(
46724678 than this value, it will be aborted with a 408 status code. Maximum allowed
46734679 value is 300000ms (5 minutes).
46744680
4681+ use_main_content_only: When true, return only the page's main content in the HTML response, excluding
4682+ headers, footers, sidebars, and navigation when detectable.
4683+
46754684 wait_for_ms:
46764685 Optional browser wait time in milliseconds after initial page load. Min: 0. Max:
46774686 30000 (30 seconds).
@@ -4701,6 +4710,7 @@ async def web_scrape_html(
47014710 "max_age_ms" : max_age_ms ,
47024711 "pdf" : pdf ,
47034712 "timeout_ms" : timeout_ms ,
4713+ "use_main_content_only" : use_main_content_only ,
47044714 "wait_for_ms" : wait_for_ms ,
47054715 },
47064716 brand_web_scrape_html_params .BrandWebScrapeHTMLParams ,
0 commit comments