-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. AsyncDDGS performance improved: await resp.acontent(), 2. _get_vqd improved: using regex pattern to extract vqd from html, 3. Removed deprecated functions: ddg, ddg_answers, ddg_images, ddg_maps, ddg_news, ddg_suggestions, ddg_translate, ddg_videos, 4. README: updated async example, 5. Ruff: added lint rules to pyproject.toml, 6. CLI: support functions have been changed to private, 7. Docstrings updated, 8. Small code improvements.
- Loading branch information
Showing
15 changed files
with
310 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,18 @@ | ||
"""Duckduckgo_search | ||
~~~~~~~~~~~~~~ | ||
Search for words, documents, images, videos, news, maps and text translation | ||
"""Duckduckgo_search. | ||
Search for words, documents, images, videos, news, maps and text translation | ||
using the DuckDuckGo.com search engine. | ||
""" | ||
|
||
import logging | ||
|
||
# ruff: noqa: F401 | ||
# isort: off | ||
from .compat import ( | ||
ddg, | ||
ddg_answers, | ||
ddg_images, | ||
ddg_maps, | ||
ddg_news, | ||
ddg_suggestions, | ||
ddg_translate, | ||
ddg_videos, | ||
) | ||
|
||
# isort: on | ||
from .duckduckgo_search import DDGS | ||
from .duckduckgo_search_async import AsyncDDGS | ||
from .version import __version__ | ||
|
||
__all__ = ["DDGS", "AsyncDDGS", "__version__", "cli"] | ||
|
||
# A do-nothing logging handler | ||
# https://docs.python.org/3.3/howto/logging.html#configuring-logging-for-a-library | ||
logging.getLogger("duckduckgo_search").addHandler(logging.NullHandler()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.