@@ -203,6 +203,7 @@ def web_scrape_md(
203203 include_images : bool | Omit = omit ,
204204 include_links : bool | Omit = omit ,
205205 shorten_base64_images : bool | Omit = omit ,
206+ use_main_content_only : bool | Omit = omit ,
206207 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
207208 # The extra values given here take precedence over values defined on the client or passed to this method.
208209 extra_headers : Headers | None = None ,
@@ -224,6 +225,9 @@ def web_scrape_md(
224225
225226 shorten_base64_images: Shorten base64-encoded image data in the Markdown output
226227
228+ use_main_content_only: Extract only the main content of the page, excluding headers, footers, sidebars,
229+ and navigation
230+
227231 extra_headers: Send extra headers
228232
229233 extra_query: Add additional query parameters to the request
@@ -245,6 +249,7 @@ def web_scrape_md(
245249 "include_images" : include_images ,
246250 "include_links" : include_links ,
247251 "shorten_base64_images" : shorten_base64_images ,
252+ "use_main_content_only" : use_main_content_only ,
248253 },
249254 web_web_scrape_md_params .WebWebScrapeMdParams ,
250255 ),
@@ -473,6 +478,7 @@ async def web_scrape_md(
473478 include_images : bool | Omit = omit ,
474479 include_links : bool | Omit = omit ,
475480 shorten_base64_images : bool | Omit = omit ,
481+ use_main_content_only : bool | Omit = omit ,
476482 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
477483 # The extra values given here take precedence over values defined on the client or passed to this method.
478484 extra_headers : Headers | None = None ,
@@ -494,6 +500,9 @@ async def web_scrape_md(
494500
495501 shorten_base64_images: Shorten base64-encoded image data in the Markdown output
496502
503+ use_main_content_only: Extract only the main content of the page, excluding headers, footers, sidebars,
504+ and navigation
505+
497506 extra_headers: Send extra headers
498507
499508 extra_query: Add additional query parameters to the request
@@ -515,6 +524,7 @@ async def web_scrape_md(
515524 "include_images" : include_images ,
516525 "include_links" : include_links ,
517526 "shorten_base64_images" : shorten_base64_images ,
527+ "use_main_content_only" : use_main_content_only ,
518528 },
519529 web_web_scrape_md_params .WebWebScrapeMdParams ,
520530 ),
0 commit comments