Skip to content

Commit 38a4e7f

Browse files
feat(api): api update
1 parent 604b2b5 commit 38a4e7f

2 files changed

Lines changed: 10 additions & 16 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: 20
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-5ccec8151205f9db00c9218a6c903ddb337cbbb51384876fb2090a181b92cdf5.yml
3-
openapi_spec_hash: d82bad84c8896bf48e3c3522cf9e37f8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-ea89aeedfdd75f71542bcbb53880ecbc07f2656945d9ac8dce55d7bdabc5f8cc.yml
3+
openapi_spec_hash: c4dd62c3a3dc8c59a050fb6a76ab5f1b
44
config_hash: 91976f3284e20f47fdb0256e128536cd

‎src/context/dev/resources/web.py‎

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,8 @@ def web_scrape_html(
130130
extra_body: Body | None = None,
131131
timeout: float | httpx.Timeout | None | NotGiven = not_given,
132132
) -> WebWebScrapeHTMLResponse:
133-
"""Scrapes the given URL and returns the raw HTML content of the page.
134-
135-
Uses
136-
automatic proxy escalation to handle blocked sites.
133+
"""
134+
Scrapes the given URL and returns the raw HTML content of the page.
137135
138136
Args:
139137
url: Full URL to scrape (must include http:// or https:// protocol)
@@ -213,9 +211,8 @@ def web_scrape_md(
213211
timeout: float | httpx.Timeout | None | NotGiven = not_given,
214212
) -> WebWebScrapeMdResponse:
215213
"""
216-
Scrapes the given URL, converts the HTML content to GitHub Flavored Markdown
217-
(GFM), and returns the result. Uses automatic proxy escalation to handle blocked
218-
sites.
214+
Scrapes the given URL, converts the HTML content to Markdown, and returns the
215+
result.
219216
220217
Args:
221218
url: Full URL to scrape and convert to markdown (must include http:// or https://
@@ -403,10 +400,8 @@ async def web_scrape_html(
403400
extra_body: Body | None = None,
404401
timeout: float | httpx.Timeout | None | NotGiven = not_given,
405402
) -> WebWebScrapeHTMLResponse:
406-
"""Scrapes the given URL and returns the raw HTML content of the page.
407-
408-
Uses
409-
automatic proxy escalation to handle blocked sites.
403+
"""
404+
Scrapes the given URL and returns the raw HTML content of the page.
410405
411406
Args:
412407
url: Full URL to scrape (must include http:// or https:// protocol)
@@ -486,9 +481,8 @@ async def web_scrape_md(
486481
timeout: float | httpx.Timeout | None | NotGiven = not_given,
487482
) -> WebWebScrapeMdResponse:
488483
"""
489-
Scrapes the given URL, converts the HTML content to GitHub Flavored Markdown
490-
(GFM), and returns the result. Uses automatic proxy escalation to handle blocked
491-
sites.
484+
Scrapes the given URL, converts the HTML content to Markdown, and returns the
485+
result.
492486
493487
Args:
494488
url: Full URL to scrape and convert to markdown (must include http:// or https://

0 commit comments

Comments
 (0)