Skip to content

Commit 28d8889

Browse files
committed
rm DNS, update await
1 parent d9d7a2b commit 28d8889

File tree

2 files changed

+1
-51
lines changed

2 files changed

+1
-51
lines changed

jigsawstack/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def __init__(
289289
disable_request_logging: Union[bool, None] = False,
290290
):
291291
super().__init__(api_key, api_url, disable_request_logging)
292-
self.config = RequestConfig(
292+
self.config = AsyncRequestConfig(
293293
api_url=api_url,
294294
api_key=api_key,
295295
disable_request_logging=disable_request_logging,

jigsawstack/web.py

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,9 @@
1414
DeepResearchParams,
1515
DeepResearchResponse,
1616
)
17-
from .helpers import build_path
1817
from ._types import BaseResponse
1918

2019

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-
4420
class GotoOptions(TypedDict):
4521
timeout: NotRequired[int]
4622
wait_until: NotRequired[
@@ -272,19 +248,6 @@ def html_to_any(
272248
).perform_with_content()
273249
return cast(HTMLToAnyURLResponse, resp)
274250

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-
288251
def search(self, params: SearchParams) -> SearchResponse:
289252
s = Search(
290253
self.api_key,
@@ -372,19 +335,6 @@ async def html_to_any(
372335
).perform_with_content()
373336
return cast(HTMLToAnyURLResponse, resp)
374337

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-
388338
async def search(self, params: SearchParams) -> SearchResponse:
389339
s = AsyncSearch(
390340
self.api_key,

0 commit comments

Comments
 (0)