|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import Dict, Union, Iterable, Optional |
| 5 | +from typing import Dict, Iterable, Optional |
6 | 6 | from typing_extensions import Literal |
7 | 7 |
|
8 | 8 | import httpx |
@@ -597,7 +597,7 @@ def screenshot( |
597 | 597 | direct_url: str | Omit = omit, |
598 | 598 | domain: str | Omit = omit, |
599 | 599 | full_screenshot: Literal["true", "false"] | Omit = omit, |
600 | | - handle_cookie_popup: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 600 | + handle_cookie_popup: bool | Omit = omit, |
601 | 601 | max_age_ms: Optional[int] | Omit = omit, |
602 | 602 | page: Literal["login", "signup", "blog", "careers", "pricing", "terms", "privacy", "contact"] | Omit = omit, |
603 | 603 | scroll_offset: Optional[int] | Omit = omit, |
@@ -1599,14 +1599,14 @@ def web_scrape_html( |
1599 | 1599 | | Omit = omit, |
1600 | 1600 | exclude_selectors: Optional[SequenceNotStr[str]] | Omit = omit, |
1601 | 1601 | headers: Dict[str, str] | Omit = omit, |
1602 | | - include_frames: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 1602 | + include_frames: bool | Omit = omit, |
1603 | 1603 | include_selectors: Optional[SequenceNotStr[str]] | Omit = omit, |
1604 | 1604 | max_age_ms: Optional[int] | Omit = omit, |
1605 | 1605 | pdf: web_web_scrape_html_params.Pdf | Omit = omit, |
1606 | | - settle_animations: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 1606 | + settle_animations: bool | Omit = omit, |
1607 | 1607 | tags: SequenceNotStr[str] | Omit = omit, |
1608 | 1608 | timeout_ms: int | Omit = omit, |
1609 | | - use_main_content_only: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 1609 | + use_main_content_only: bool | Omit = omit, |
1610 | 1610 | wait_for_ms: Optional[int] | Omit = omit, |
1611 | 1611 | zdr: Literal["enabled", "disabled"] | Omit = omit, |
1612 | 1612 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -1720,7 +1720,7 @@ def web_scrape_images( |
1720 | 1720 | *, |
1721 | 1721 | url: str, |
1722 | 1722 | actions: Optional[Iterable[web_web_scrape_images_params.Action]] | Omit = omit, |
1723 | | - dedupe: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 1723 | + dedupe: bool | Omit = omit, |
1724 | 1724 | enrichment: Optional[web_web_scrape_images_params.Enrichment] | Omit = omit, |
1725 | 1725 | headers: Dict[str, str] | Omit = omit, |
1726 | 1726 | max_age_ms: Optional[int] | Omit = omit, |
@@ -2021,18 +2021,18 @@ def web_scrape_md( |
2021 | 2021 | | Omit = omit, |
2022 | 2022 | exclude_selectors: Optional[SequenceNotStr[str]] | Omit = omit, |
2023 | 2023 | headers: Dict[str, str] | Omit = omit, |
2024 | | - include_frames: Union[bool, Literal["true", "false"]] | Omit = omit, |
2025 | | - include_html: Union[bool, Literal["true", "false"]] | Omit = omit, |
2026 | | - include_images: Union[bool, Literal["true", "false"]] | Omit = omit, |
2027 | | - include_links: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 2024 | + include_frames: bool | Omit = omit, |
| 2025 | + include_html: bool | Omit = omit, |
| 2026 | + include_images: bool | Omit = omit, |
| 2027 | + include_links: bool | Omit = omit, |
2028 | 2028 | include_selectors: Optional[SequenceNotStr[str]] | Omit = omit, |
2029 | 2029 | max_age_ms: Optional[int] | Omit = omit, |
2030 | 2030 | pdf: web_web_scrape_md_params.Pdf | Omit = omit, |
2031 | | - settle_animations: Union[bool, Literal["true", "false"]] | Omit = omit, |
2032 | | - shorten_base64_images: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 2031 | + settle_animations: bool | Omit = omit, |
| 2032 | + shorten_base64_images: bool | Omit = omit, |
2033 | 2033 | tags: SequenceNotStr[str] | Omit = omit, |
2034 | 2034 | timeout_ms: int | Omit = omit, |
2035 | | - use_main_content_only: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 2035 | + use_main_content_only: bool | Omit = omit, |
2036 | 2036 | wait_for_ms: Optional[int] | Omit = omit, |
2037 | 2037 | zdr: Literal["enabled", "disabled"] | Omit = omit, |
2038 | 2038 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -2827,7 +2827,7 @@ async def screenshot( |
2827 | 2827 | direct_url: str | Omit = omit, |
2828 | 2828 | domain: str | Omit = omit, |
2829 | 2829 | full_screenshot: Literal["true", "false"] | Omit = omit, |
2830 | | - handle_cookie_popup: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 2830 | + handle_cookie_popup: bool | Omit = omit, |
2831 | 2831 | max_age_ms: Optional[int] | Omit = omit, |
2832 | 2832 | page: Literal["login", "signup", "blog", "careers", "pricing", "terms", "privacy", "contact"] | Omit = omit, |
2833 | 2833 | scroll_offset: Optional[int] | Omit = omit, |
@@ -3829,14 +3829,14 @@ async def web_scrape_html( |
3829 | 3829 | | Omit = omit, |
3830 | 3830 | exclude_selectors: Optional[SequenceNotStr[str]] | Omit = omit, |
3831 | 3831 | headers: Dict[str, str] | Omit = omit, |
3832 | | - include_frames: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 3832 | + include_frames: bool | Omit = omit, |
3833 | 3833 | include_selectors: Optional[SequenceNotStr[str]] | Omit = omit, |
3834 | 3834 | max_age_ms: Optional[int] | Omit = omit, |
3835 | 3835 | pdf: web_web_scrape_html_params.Pdf | Omit = omit, |
3836 | | - settle_animations: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 3836 | + settle_animations: bool | Omit = omit, |
3837 | 3837 | tags: SequenceNotStr[str] | Omit = omit, |
3838 | 3838 | timeout_ms: int | Omit = omit, |
3839 | | - use_main_content_only: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 3839 | + use_main_content_only: bool | Omit = omit, |
3840 | 3840 | wait_for_ms: Optional[int] | Omit = omit, |
3841 | 3841 | zdr: Literal["enabled", "disabled"] | Omit = omit, |
3842 | 3842 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -3950,7 +3950,7 @@ async def web_scrape_images( |
3950 | 3950 | *, |
3951 | 3951 | url: str, |
3952 | 3952 | actions: Optional[Iterable[web_web_scrape_images_params.Action]] | Omit = omit, |
3953 | | - dedupe: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 3953 | + dedupe: bool | Omit = omit, |
3954 | 3954 | enrichment: Optional[web_web_scrape_images_params.Enrichment] | Omit = omit, |
3955 | 3955 | headers: Dict[str, str] | Omit = omit, |
3956 | 3956 | max_age_ms: Optional[int] | Omit = omit, |
@@ -4251,18 +4251,18 @@ async def web_scrape_md( |
4251 | 4251 | | Omit = omit, |
4252 | 4252 | exclude_selectors: Optional[SequenceNotStr[str]] | Omit = omit, |
4253 | 4253 | headers: Dict[str, str] | Omit = omit, |
4254 | | - include_frames: Union[bool, Literal["true", "false"]] | Omit = omit, |
4255 | | - include_html: Union[bool, Literal["true", "false"]] | Omit = omit, |
4256 | | - include_images: Union[bool, Literal["true", "false"]] | Omit = omit, |
4257 | | - include_links: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 4254 | + include_frames: bool | Omit = omit, |
| 4255 | + include_html: bool | Omit = omit, |
| 4256 | + include_images: bool | Omit = omit, |
| 4257 | + include_links: bool | Omit = omit, |
4258 | 4258 | include_selectors: Optional[SequenceNotStr[str]] | Omit = omit, |
4259 | 4259 | max_age_ms: Optional[int] | Omit = omit, |
4260 | 4260 | pdf: web_web_scrape_md_params.Pdf | Omit = omit, |
4261 | | - settle_animations: Union[bool, Literal["true", "false"]] | Omit = omit, |
4262 | | - shorten_base64_images: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 4261 | + settle_animations: bool | Omit = omit, |
| 4262 | + shorten_base64_images: bool | Omit = omit, |
4263 | 4263 | tags: SequenceNotStr[str] | Omit = omit, |
4264 | 4264 | timeout_ms: int | Omit = omit, |
4265 | | - use_main_content_only: Union[bool, Literal["true", "false"]] | Omit = omit, |
| 4265 | + use_main_content_only: bool | Omit = omit, |
4266 | 4266 | wait_for_ms: Optional[int] | Omit = omit, |
4267 | 4267 | zdr: Literal["enabled", "disabled"] | Omit = omit, |
4268 | 4268 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
|
0 commit comments