Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.33.0"
".": "0.34.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 25
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-d605be55fd51d8f3ae53439a3bbcdcd20c4c78e3d9dcec9bf0bbf326290f0dd5.yml
openapi_spec_hash: 2f6a14c5ab9716e73da8e1c03df8cab6
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-5a8e1f6e16ecdbab4b2ff14701779818fe0328b06a1c7fa44a32da4f4bc87a49.yml
openapi_spec_hash: 4b5407859d1154232189ef440b783b17
config_hash: f86a4e06ae5ed725aa79d58d7a8dc27c
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.34.0 (2026-06-08)

Full Changelog: [v0.33.0...v0.34.0](https://github.com/context-dot-dev/context-python-sdk/compare/v0.33.0...v0.34.0)

### Features

* **api:** api update ([69e2b8a](https://github.com/context-dot-dev/context-python-sdk/commit/69e2b8a0afc595b9da680a1c76f2b0dc581f709d))

## 0.33.0 (2026-06-08)

Full Changelog: [v0.32.0...v0.33.0](https://github.com/context-dot-dev/context-python-sdk/compare/v0.32.0...v0.33.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "context.dev"
version = "0.33.0"
version = "0.34.0"
description = "The official Python library for the context.dev API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/context/dev/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "context.dev"
__version__ = "0.33.0" # x-release-please-version
__version__ = "0.34.0" # x-release-please-version
10 changes: 10 additions & 0 deletions src/context/dev/resources/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,7 @@ def web_scrape_html(
max_age_ms: int | Omit = omit,
pdf: web_web_scrape_html_params.Pdf | Omit = omit,
timeout_ms: int | Omit = omit,
use_main_content_only: bool | Omit = omit,
wait_for_ms: int | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -672,6 +673,9 @@ def web_scrape_html(
than this value, it will be aborted with a 408 status code. Maximum allowed
value is 300000ms (5 minutes).

use_main_content_only: When true, return only the page's main content in the HTML response, excluding
headers, footers, sidebars, and navigation when detectable.

wait_for_ms:
Optional browser wait time in milliseconds after initial page load. Min: 0. Max:
30000 (30 seconds).
Expand Down Expand Up @@ -701,6 +705,7 @@ def web_scrape_html(
"max_age_ms": max_age_ms,
"pdf": pdf,
"timeout_ms": timeout_ms,
"use_main_content_only": use_main_content_only,
"wait_for_ms": wait_for_ms,
},
web_web_scrape_html_params.WebWebScrapeHTMLParams,
Expand Down Expand Up @@ -1537,6 +1542,7 @@ async def web_scrape_html(
max_age_ms: int | Omit = omit,
pdf: web_web_scrape_html_params.Pdf | Omit = omit,
timeout_ms: int | Omit = omit,
use_main_content_only: bool | Omit = omit,
wait_for_ms: int | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -1576,6 +1582,9 @@ async def web_scrape_html(
than this value, it will be aborted with a 408 status code. Maximum allowed
value is 300000ms (5 minutes).

use_main_content_only: When true, return only the page's main content in the HTML response, excluding
headers, footers, sidebars, and navigation when detectable.

wait_for_ms:
Optional browser wait time in milliseconds after initial page load. Min: 0. Max:
30000 (30 seconds).
Expand Down Expand Up @@ -1605,6 +1614,7 @@ async def web_scrape_html(
"max_age_ms": max_age_ms,
"pdf": pdf,
"timeout_ms": timeout_ms,
"use_main_content_only": use_main_content_only,
"wait_for_ms": wait_for_ms,
},
web_web_scrape_html_params.WebWebScrapeHTMLParams,
Expand Down
6 changes: 6 additions & 0 deletions src/context/dev/types/web_web_scrape_html_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ class WebWebScrapeHTMLParams(TypedDict, total=False):
status code. Maximum allowed value is 300000ms (5 minutes).
"""

use_main_content_only: Annotated[bool, PropertyInfo(alias="useMainContentOnly")]
"""
When true, return only the page's main content in the HTML response, excluding
headers, footers, sidebars, and navigation when detectable.
"""

wait_for_ms: Annotated[int, PropertyInfo(alias="waitForMs")]
"""Optional browser wait time in milliseconds after initial page load.

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ def test_method_web_scrape_html_with_all_params(self, client: ContextDev) -> Non
"start": 1,
},
timeout_ms=1000,
use_main_content_only=True,
wait_for_ms=0,
)
assert_matches_type(WebWebScrapeHTMLResponse, web, path=["response"])
Expand Down Expand Up @@ -1015,6 +1016,7 @@ async def test_method_web_scrape_html_with_all_params(self, async_client: AsyncC
"start": 1,
},
timeout_ms=1000,
use_main_content_only=True,
wait_for_ms=0,
)
assert_matches_type(WebWebScrapeHTMLResponse, web, path=["response"])
Expand Down
Loading