Skip to content

Commit dc7ab0d

Browse files
feat(api): api update
1 parent f0dd84f commit dc7ab0d

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 25
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-77c81f079d31117b328f8535234bcde15298c29437b89916a1414a32e34fc16e.yml
3-
openapi_spec_hash: eeaa6f1cfcc0b604cc1dec505c5dc15d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-de0ba2ed18ec7265b0b20d9639b3da207dd33e354f0a856091902291c6661830.yml
3+
openapi_spec_hash: ae25efc2ac6bcab54bc3f4efaab73a55
44
config_hash: f86a4e06ae5ed725aa79d58d7a8dc27c

‎src/context/dev/types/web_web_scrape_html_response.py‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,21 @@
99

1010
class WebWebScrapeHTMLResponse(BaseModel):
1111
html: str
12-
"""Raw HTML content of the page"""
12+
"""The scraped content of the page.
13+
14+
For normal pages this is the raw HTML. When the page is a sitemap or feed served
15+
behind an XSL stylesheet (which browsers render into HTML), this is the
16+
underlying XML instead — see the `type` field.
17+
"""
1318

1419
success: Literal[True]
1520
"""Indicates success"""
1621

22+
type: Literal["html", "xml", "json", "text", "csv", "markdown", "svg", "pdf"]
23+
"""Detected content type of the returned `html` field.
24+
25+
Sitemaps and feeds are surfaced as `xml`; ordinary pages are `html`.
26+
"""
27+
1728
url: str
1829
"""The URL that was scraped"""

0 commit comments

Comments
 (0)