@@ -285,8 +285,8 @@ def map_urls(
285285 Args:
286286 domain: Domain to map, e.g. `stripe.com`.
287287
288- exclude_url_regex: Optional RE2-compatible regex pattern. URLs matching this pattern are not
289- returned, even when they match urlRegex.
288+ exclude_url_regex: Regex pattern. URLs matching this pattern are not returned, even when they match
289+ urlRegex.
290290
291291 headers: HTTP headers for the target origin. Non-empty headers bypass caching.
292292
@@ -303,8 +303,8 @@ def map_urls(
303303
304304 timeout_opts: Request deadline and what to return when it passes.
305305
306- url_regex: Optional RE2-compatible regex pattern. Only URLs matching this pattern are
307- returned and counted against maxLinks.
306+ url_regex: Regex pattern. Only URLs matching this pattern are returned and counted against
307+ maxLinks.
308308
309309 zdr: `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless
310310 your organization has ZDR.
@@ -1456,8 +1456,8 @@ def web_crawl_md(
14561456
14571457 exclude_selectors: Remove matching elements after inclusions. Exclusions take precedence.
14581458
1459- exclude_url_regex: RE2 regex pattern. URLs matching this pattern are never followed or scraped,
1460- even when they match urlRegex. The starting URL is always scraped.
1459+ exclude_url_regex: Regex pattern. URLs matching this pattern are never followed or scraped, even
1460+ when they match urlRegex. The starting URL is always scraped.
14611461
14621462 follow_subdomains: When true, follow links on subdomains of the starting URL's domain (e.g.
14631463 docs.example.com when starting from example.com). www and apex are always
@@ -1466,11 +1466,9 @@ def web_crawl_md(
14661466 include_frames: When true, the contents of iframes are rendered to Markdown for each crawled
14671467 page.
14681468
1469- include_images: Include image references in the Markdown output Only applies to
1470- `html-conversion` extractions.
1469+ include_images: Include image references in the Markdown output (`html-conversion` only).
14711470
1472- include_links: Preserve hyperlinks in the Markdown output Only applies to `html-conversion`
1473- extractions.
1471+ include_links: Preserve hyperlinks in the Markdown output (`html-conversion` only).
14741472
14751473 include_selectors: Keep matching HTML subtrees before converting each page to Markdown.
14761474
@@ -1485,18 +1483,11 @@ def web_crawl_md(
14851483 settle_animations: Wait briefly for CSS animations and transitions to settle before reading each
14861484 page.
14871485
1488- shorten_base64_images: Truncate base64-encoded image data in the Markdown output Only applies to
1489- `html-conversion` extractions .
1486+ shorten_base64_images: Truncate base64-encoded image data in the Markdown output (`html-conversion`
1487+ only) .
14901488
1491- source_preference: Where the Markdown should come from, in order of preference; the first usable
1492- source wins. `html-conversion` converts the page HTML, and counts as unusable
1493- when the conversion has almost no content (under 200 characters).
1494- `markdown-direct` uses the official Markdown version the page publishes through,
1495- returned as the site serves it. Defaults to
1496- `["html-conversion", "markdown-direct"]`. With only `markdown-direct`, a page
1497- that publishes no Markdown fails with `NO_PUBLISHED_MARKDOWN` and is not billed.
1498- Requests with include or exclude selectors never use `markdown-direct`, so they
1499- must include `html-conversion`.
1489+ source_preference: Markdown sources in order of preference: `html-conversion` converts the page
1490+ HTML, `markdown-direct` uses Markdown the site publishes.
15001491
15011492 stop_after_ms: Soft crawl deadline in milliseconds. Returns pages collected before the next
15021493 deadline check.
@@ -1808,8 +1799,8 @@ async def map_urls(
18081799 Args:
18091800 domain: Domain to map, e.g. `stripe.com`.
18101801
1811- exclude_url_regex: Optional RE2-compatible regex pattern. URLs matching this pattern are not
1812- returned, even when they match urlRegex.
1802+ exclude_url_regex: Regex pattern. URLs matching this pattern are not returned, even when they match
1803+ urlRegex.
18131804
18141805 headers: HTTP headers for the target origin. Non-empty headers bypass caching.
18151806
@@ -1826,8 +1817,8 @@ async def map_urls(
18261817
18271818 timeout_opts: Request deadline and what to return when it passes.
18281819
1829- url_regex: Optional RE2-compatible regex pattern. Only URLs matching this pattern are
1830- returned and counted against maxLinks.
1820+ url_regex: Regex pattern. Only URLs matching this pattern are returned and counted against
1821+ maxLinks.
18311822
18321823 zdr: `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless
18331824 your organization has ZDR.
@@ -2979,8 +2970,8 @@ async def web_crawl_md(
29792970
29802971 exclude_selectors: Remove matching elements after inclusions. Exclusions take precedence.
29812972
2982- exclude_url_regex: RE2 regex pattern. URLs matching this pattern are never followed or scraped,
2983- even when they match urlRegex. The starting URL is always scraped.
2973+ exclude_url_regex: Regex pattern. URLs matching this pattern are never followed or scraped, even
2974+ when they match urlRegex. The starting URL is always scraped.
29842975
29852976 follow_subdomains: When true, follow links on subdomains of the starting URL's domain (e.g.
29862977 docs.example.com when starting from example.com). www and apex are always
@@ -2989,11 +2980,9 @@ async def web_crawl_md(
29892980 include_frames: When true, the contents of iframes are rendered to Markdown for each crawled
29902981 page.
29912982
2992- include_images: Include image references in the Markdown output Only applies to
2993- `html-conversion` extractions.
2983+ include_images: Include image references in the Markdown output (`html-conversion` only).
29942984
2995- include_links: Preserve hyperlinks in the Markdown output Only applies to `html-conversion`
2996- extractions.
2985+ include_links: Preserve hyperlinks in the Markdown output (`html-conversion` only).
29972986
29982987 include_selectors: Keep matching HTML subtrees before converting each page to Markdown.
29992988
@@ -3008,18 +2997,11 @@ async def web_crawl_md(
30082997 settle_animations: Wait briefly for CSS animations and transitions to settle before reading each
30092998 page.
30102999
3011- shorten_base64_images: Truncate base64-encoded image data in the Markdown output Only applies to
3012- `html-conversion` extractions.
3013-
3014- source_preference: Where the Markdown should come from, in order of preference; the first usable
3015- source wins. `html-conversion` converts the page HTML, and counts as unusable
3016- when the conversion has almost no content (under 200 characters).
3017- `markdown-direct` uses the official Markdown version the page publishes through,
3018- returned as the site serves it. Defaults to
3019- `["html-conversion", "markdown-direct"]`. With only `markdown-direct`, a page
3020- that publishes no Markdown fails with `NO_PUBLISHED_MARKDOWN` and is not billed.
3021- Requests with include or exclude selectors never use `markdown-direct`, so they
3022- must include `html-conversion`.
3000+ shorten_base64_images: Truncate base64-encoded image data in the Markdown output (`html-conversion`
3001+ only).
3002+
3003+ source_preference: Markdown sources in order of preference: `html-conversion` converts the page
3004+ HTML, `markdown-direct` uses Markdown the site publishes.
30233005
30243006 stop_after_ms: Soft crawl deadline in milliseconds. Returns pages collected before the next
30253007 deadline check.
0 commit comments