Skip to content

Commit d2e4746

Browse files
authored
Merge pull request #40 from context-dot-dev/release-please--branches--main--changes--next
release: 0.34.0
2 parents 158de98 + b4d606b commit d2e4746

8 files changed

Lines changed: 31 additions & 5 deletions

File tree

‎.release-please-manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.33.0"
2+
".": "0.34.0"
33
}

‎.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-d605be55fd51d8f3ae53439a3bbcdcd20c4c78e3d9dcec9bf0bbf326290f0dd5.yml
3-
openapi_spec_hash: 2f6a14c5ab9716e73da8e1c03df8cab6
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-5a8e1f6e16ecdbab4b2ff14701779818fe0328b06a1c7fa44a32da4f4bc87a49.yml
3+
openapi_spec_hash: 4b5407859d1154232189ef440b783b17
44
config_hash: f86a4e06ae5ed725aa79d58d7a8dc27c

‎CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.34.0 (2026-06-08)
4+
5+
Full Changelog: [v0.33.0...v0.34.0](https://github.com/context-dot-dev/context-python-sdk/compare/v0.33.0...v0.34.0)
6+
7+
### Features
8+
9+
* **api:** api update ([69e2b8a](https://github.com/context-dot-dev/context-python-sdk/commit/69e2b8a0afc595b9da680a1c76f2b0dc581f709d))
10+
311
## 0.33.0 (2026-06-08)
412

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

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "context.dev"
3-
version = "0.33.0"
3+
version = "0.34.0"
44
description = "The official Python library for the context.dev API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

‎src/context/dev/_version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "context.dev"
4-
__version__ = "0.33.0" # x-release-please-version
4+
__version__ = "0.34.0" # x-release-please-version

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,7 @@ def web_scrape_html(
633633
max_age_ms: int | Omit = omit,
634634
pdf: web_web_scrape_html_params.Pdf | Omit = omit,
635635
timeout_ms: int | Omit = omit,
636+
use_main_content_only: bool | Omit = omit,
636637
wait_for_ms: int | Omit = omit,
637638
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
638639
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -672,6 +673,9 @@ def web_scrape_html(
672673
than this value, it will be aborted with a 408 status code. Maximum allowed
673674
value is 300000ms (5 minutes).
674675
676+
use_main_content_only: When true, return only the page's main content in the HTML response, excluding
677+
headers, footers, sidebars, and navigation when detectable.
678+
675679
wait_for_ms:
676680
Optional browser wait time in milliseconds after initial page load. Min: 0. Max:
677681
30000 (30 seconds).
@@ -701,6 +705,7 @@ def web_scrape_html(
701705
"max_age_ms": max_age_ms,
702706
"pdf": pdf,
703707
"timeout_ms": timeout_ms,
708+
"use_main_content_only": use_main_content_only,
704709
"wait_for_ms": wait_for_ms,
705710
},
706711
web_web_scrape_html_params.WebWebScrapeHTMLParams,
@@ -1537,6 +1542,7 @@ async def web_scrape_html(
15371542
max_age_ms: int | Omit = omit,
15381543
pdf: web_web_scrape_html_params.Pdf | Omit = omit,
15391544
timeout_ms: int | Omit = omit,
1545+
use_main_content_only: bool | Omit = omit,
15401546
wait_for_ms: int | Omit = omit,
15411547
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
15421548
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1576,6 +1582,9 @@ async def web_scrape_html(
15761582
than this value, it will be aborted with a 408 status code. Maximum allowed
15771583
value is 300000ms (5 minutes).
15781584
1585+
use_main_content_only: When true, return only the page's main content in the HTML response, excluding
1586+
headers, footers, sidebars, and navigation when detectable.
1587+
15791588
wait_for_ms:
15801589
Optional browser wait time in milliseconds after initial page load. Min: 0. Max:
15811590
30000 (30 seconds).
@@ -1605,6 +1614,7 @@ async def web_scrape_html(
16051614
"max_age_ms": max_age_ms,
16061615
"pdf": pdf,
16071616
"timeout_ms": timeout_ms,
1617+
"use_main_content_only": use_main_content_only,
16081618
"wait_for_ms": wait_for_ms,
16091619
},
16101620
web_web_scrape_html_params.WebWebScrapeHTMLParams,

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ class WebWebScrapeHTMLParams(TypedDict, total=False):
6161
status code. Maximum allowed value is 300000ms (5 minutes).
6262
"""
6363

64+
use_main_content_only: Annotated[bool, PropertyInfo(alias="useMainContentOnly")]
65+
"""
66+
When true, return only the page's main content in the HTML response, excluding
67+
headers, footers, sidebars, and navigation when detectable.
68+
"""
69+
6470
wait_for_ms: Annotated[int, PropertyInfo(alias="waitForMs")]
6571
"""Optional browser wait time in milliseconds after initial page load.
6672

‎tests/api_resources/test_web.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ def test_method_web_scrape_html_with_all_params(self, client: ContextDev) -> Non
426426
"start": 1,
427427
},
428428
timeout_ms=1000,
429+
use_main_content_only=True,
429430
wait_for_ms=0,
430431
)
431432
assert_matches_type(WebWebScrapeHTMLResponse, web, path=["response"])
@@ -1015,6 +1016,7 @@ async def test_method_web_scrape_html_with_all_params(self, async_client: AsyncC
10151016
"start": 1,
10161017
},
10171018
timeout_ms=1000,
1019+
use_main_content_only=True,
10181020
wait_for_ms=0,
10191021
)
10201022
assert_matches_type(WebWebScrapeHTMLResponse, web, path=["response"])

0 commit comments

Comments
 (0)