|
14 | 14 | DeepResearchParams, |
15 | 15 | DeepResearchResponse, |
16 | 16 | ) |
17 | | -from .helpers import build_path |
18 | 17 | from ._types import BaseResponse |
19 | 18 |
|
20 | 19 |
|
21 | | -# |
22 | | -# DNS |
23 | | -# |
24 | | -class DNSParams(TypedDict): |
25 | | - domain: str |
26 | | - type: NotRequired[str] |
27 | | - |
28 | | - |
29 | | -class DNSResponse(TypedDict): |
30 | | - success: bool |
31 | | - domain: str |
32 | | - type: str |
33 | | - type_value: int |
34 | | - records: List[object] |
35 | | - DNSSEC_validation_disabled: bool |
36 | | - DNSSEC_verified: bool |
37 | | - recursion_available: bool |
38 | | - recursion_desired: bool |
39 | | - truncated: bool |
40 | | - additional: List |
41 | | - authority: List |
42 | | - |
43 | | - |
44 | 20 | class GotoOptions(TypedDict): |
45 | 21 | timeout: NotRequired[int] |
46 | 22 | wait_until: NotRequired[ |
@@ -272,19 +248,6 @@ def html_to_any( |
272 | 248 | ).perform_with_content() |
273 | 249 | return cast(HTMLToAnyURLResponse, resp) |
274 | 250 |
|
275 | | - def dns(self, params: DNSParams) -> DNSResponse: |
276 | | - path = build_path( |
277 | | - base_path="/web/html_to_any", |
278 | | - params=params, |
279 | | - ) |
280 | | - resp = Request( |
281 | | - config=self.config, |
282 | | - path=path, |
283 | | - params=cast(Dict[Any, Any], params), |
284 | | - verb="get", |
285 | | - ).perform_with_content() |
286 | | - return resp |
287 | | - |
288 | 251 | def search(self, params: SearchParams) -> SearchResponse: |
289 | 252 | s = Search( |
290 | 253 | self.api_key, |
@@ -372,19 +335,6 @@ async def html_to_any( |
372 | 335 | ).perform_with_content() |
373 | 336 | return cast(HTMLToAnyURLResponse, resp) |
374 | 337 |
|
375 | | - async def dns(self, params: DNSParams) -> DNSResponse: |
376 | | - path = build_path( |
377 | | - base_path="/web/html_to_any", |
378 | | - params=params, |
379 | | - ) |
380 | | - resp = await AsyncRequest( |
381 | | - config=self.config, |
382 | | - path=path, |
383 | | - params=cast(Dict[Any, Any], params), |
384 | | - verb="get", |
385 | | - ).perform_with_content() |
386 | | - return resp |
387 | | - |
388 | 338 | async def search(self, params: SearchParams) -> SearchResponse: |
389 | 339 | s = AsyncSearch( |
390 | 340 | self.api_key, |
|
0 commit comments