Skip to content

Commit

Permalink
V3.9.11 (#148)
Browse files Browse the repository at this point in the history
bugfix in images(): httpx.Client(verify=False) to get around an unexpected error in httpx
  • Loading branch information
deedy5 authored Dec 8, 2023
1 parent f55675a commit ddc7162
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion duckduckgo_search/duckduckgo_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, headers=None, proxies=None, timeout=10) -> None:
headers = HEADERS
headers["User-Agent"] = choice(USERAGENTS)
self.proxies = proxies
self._client = httpx.Client(headers=headers, proxies=proxies, timeout=timeout, http2=True)
self._client = httpx.Client(headers=headers, proxies=proxies, timeout=timeout, http2=True, verify=False)

def __enter__(self) -> "DDGS":
return self
Expand Down
2 changes: 1 addition & 1 deletion duckduckgo_search/duckduckgo_search_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, headers=None, proxies=None, timeout=10) -> None:
headers = HEADERS
headers["User-Agent"] = choice(USERAGENTS)
self.proxies = proxies
self._client = httpx.AsyncClient(headers=headers, proxies=proxies, timeout=timeout, http2=True)
self._client = httpx.AsyncClient(headers=headers, proxies=proxies, timeout=timeout, http2=True, verify=False)

async def __aenter__(self) -> "AsyncDDGS":
return self
Expand Down
2 changes: 1 addition & 1 deletion duckduckgo_search/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.9.10"
__version__ = "3.9.11"

0 comments on commit ddc7162

Please sign in to comment.