@@ -633,6 +633,7 @@ def web_scrape_html(
633633 max_age_ms : int | Omit = omit ,
634634 pdf : web_web_scrape_html_params .Pdf | Omit = omit ,
635635 timeout_ms : int | Omit = omit ,
636+ use_main_content_only : bool | Omit = omit ,
636637 wait_for_ms : int | Omit = omit ,
637638 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
638639 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -672,6 +673,9 @@ def web_scrape_html(
672673 than this value, it will be aborted with a 408 status code. Maximum allowed
673674 value is 300000ms (5 minutes).
674675
676+ use_main_content_only: When true, return only the page's main content in the HTML response, excluding
677+ headers, footers, sidebars, and navigation when detectable.
678+
675679 wait_for_ms:
676680 Optional browser wait time in milliseconds after initial page load. Min: 0. Max:
677681 30000 (30 seconds).
@@ -701,6 +705,7 @@ def web_scrape_html(
701705 "max_age_ms" : max_age_ms ,
702706 "pdf" : pdf ,
703707 "timeout_ms" : timeout_ms ,
708+ "use_main_content_only" : use_main_content_only ,
704709 "wait_for_ms" : wait_for_ms ,
705710 },
706711 web_web_scrape_html_params .WebWebScrapeHTMLParams ,
@@ -1537,6 +1542,7 @@ async def web_scrape_html(
15371542 max_age_ms : int | Omit = omit ,
15381543 pdf : web_web_scrape_html_params .Pdf | Omit = omit ,
15391544 timeout_ms : int | Omit = omit ,
1545+ use_main_content_only : bool | Omit = omit ,
15401546 wait_for_ms : int | Omit = omit ,
15411547 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
15421548 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1576,6 +1582,9 @@ async def web_scrape_html(
15761582 than this value, it will be aborted with a 408 status code. Maximum allowed
15771583 value is 300000ms (5 minutes).
15781584
1585+ use_main_content_only: When true, return only the page's main content in the HTML response, excluding
1586+ headers, footers, sidebars, and navigation when detectable.
1587+
15791588 wait_for_ms:
15801589 Optional browser wait time in milliseconds after initial page load. Min: 0. Max:
15811590 30000 (30 seconds).
@@ -1605,6 +1614,7 @@ async def web_scrape_html(
16051614 "max_age_ms" : max_age_ms ,
16061615 "pdf" : pdf ,
16071616 "timeout_ms" : timeout_ms ,
1617+ "use_main_content_only" : use_main_content_only ,
16081618 "wait_for_ms" : wait_for_ms ,
16091619 },
16101620 web_web_scrape_html_params .WebWebScrapeHTMLParams ,
0 commit comments