Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deedy5/ddgs
/ functions
Functions
153 in github.com/deedy5/ddgs
⨍
Functions
153
◇
Types & classes
42
↳
Endpoints
20
↓ 24 callers
Method
get
Make a GET request to the HTTP client.
ddgs/http_client.py:73
↓ 16 callers
Function
_expand_proxy_tb_alias
Expand "tb" to a full proxy URL if applicable.
ddgs/utils.py:68
↓ 12 callers
Function
_get_ddgs
Create a DDGS instance with proxy configuration from environment.
ddgs/api_server/api.py:38
↓ 12 callers
Method
append
Add an item to the cache. Register an occurrence of `item`. First time we see its key, we store the item; every time we bump the coun
ddgs/results.py:128
↓ 7 callers
Method
extract
Fetch a URL and extract its content. Args: url: The URL to fetch and extract content from. fmt: Output format: "text_
ddgs/ddgs.py:246
↓ 7 callers
Method
text
Perform a text search.
ddgs/ddgs.py:226
↓ 6 callers
Function
_save_data
(query: str, data: list[dict[str, str]], function_name: str, filename: str | None)
ddgs/cli.py:51
↓ 6 callers
Method
images
Perform an image search.
ddgs/ddgs.py:230
↓ 6 callers
Method
request
Make a request to the search engine.
ddgs/base.py:65
↓ 5 callers
Function
_print_data
(data: list[dict[str, str]], *, no_color: bool = False)
ddgs/cli.py:74
↓ 5 callers
Function
_sanitize_query
(query: str)
ddgs/cli.py:101
↓ 5 callers
Method
_search_sync
Perform a search across engines in the given category. Args: category: The category of search engines (e.g., 'text', 'images', et
ddgs/ddgs.py:135
↓ 5 callers
Method
books
Perform a book search.
ddgs/ddgs.py:242
↓ 5 callers
Method
news
Perform a news search.
ddgs/ddgs.py:234
↓ 5 callers
Method
videos
Perform a video search.
ddgs/ddgs.py:238
↓ 4 callers
Method
__setattr__
Override setattr to apply normalization functions to certain attributes.
ddgs/results.py:30
↓ 4 callers
Function
_download_results
( query: str, results: list[dict[str, str]], function_name: str, proxy: str | None = None,
ddgs/cli.py:127
↓ 3 callers
Function
_extract_vqd
Extract vqd from html bytes.
ddgs/utils.py:15
↓ 3 callers
Method
_load_real
(cls)
ddgs/__init__.py:27
↓ 3 callers
Method
extract_tree
Extract html tree from html text.
ddgs/base.py:77
↓ 2 callers
Function
_save_csv
(csvfile: str | Path, data: list[dict[str, str]])
ddgs/cli.py:65
↓ 2 callers
Function
_save_json
(jsonfile: str | Path, data: list[dict[str, str]])
ddgs/cli.py:60
↓ 2 callers
Method
request
Make a request to the HTTP client.
ddgs/http_client.py:62
↓ 2 callers
Method
search
Search the engine.
ddgs/base.py:103
↓ 1 callers
Method
_extract_tokens
Split on non-word characters & filter out short tokens.
ddgs/similarity.py:24
↓ 1 callers
Method
_get_engines
Retrieve a list of search engine instances for a given category and backend. Args: category: The category of search engines (e.g.
ddgs/ddgs.py:72
↓ 1 callers
Method
_get_key
(self, item: T)
ddgs/results.py:117
↓ 1 callers
Method
_get_vqd
Get vqd value for a search query using DuckDuckGo.
ddgs/engines/duckduckgo_videos.py:38
↓ 1 callers
Method
_get_vqd
Get vqd value for a search query using DuckDuckGo.
ddgs/engines/duckduckgo_news.py:31
↓ 1 callers
Method
_get_vqd
Get vqd value for a search query using DuckDuckGo.
ddgs/engines/duckduckgo_images.py:42
↓ 1 callers
Method
_has_any_token
Check if any token is a substring of the lower-cased text.
ddgs/similarity.py:28
↓ 1 callers
Method
build_payload
Build a payload for the search request.
ddgs/base.py:53
↓ 1 callers
Function
cli
DDGS CLI tool.
ddgs/cli.py:162
↓ 1 callers
Method
extend
Add a list of items to the cache.
ddgs/results.py:141
↓ 1 callers
Function
extract_date
Extract date from string.
ddgs/engines/bing_news.py:15
↓ 1 callers
Function
extract_date
Extract date from string.
ddgs/engines/yahoo_news.py:26
↓ 1 callers
Method
extract_dicts
Return a list of items, sorted by descending frequency. Each item is returned as a dict.
ddgs/results.py:146
↓ 1 callers
Function
extract_image
Sanitize image url.
ddgs/engines/yahoo_news.py:46
↓ 1 callers
Method
extract_results
Extract search results from html text.
ddgs/base.py:85
↓ 1 callers
Function
extract_source
Remove ' via Yahoo' from string.
ddgs/engines/yahoo_news.py:52
↓ 1 callers
Function
extract_url
Sanitize url.
ddgs/engines/yahoo.py:12
↓ 1 callers
Function
extract_url
Sanitize url.
ddgs/engines/yahoo_news.py:40
↓ 1 callers
Method
get_sc
Get sc param.
ddgs/engines/startpage.py:31
↓ 1 callers
Function
get_ua
Return one User-Agent string.
ddgs/engines/google.py:13
↓ 1 callers
Method
post_extract_results
Post-process search results.
ddgs/base.py:99
↓ 1 callers
Method
pre_process_html
Pre-process html_text before extracting results.
ddgs/base.py:81
↓ 1 callers
Method
pre_process_html
Pre-process html_text before extracting results.
ddgs/engines/google.py:70
↓ 1 callers
Method
rank
Rank a list of docs based on a query string.
ddgs/similarity.py:33
↓ 1 callers
Method
result_type
Get result type based on category.
ddgs/base.py:41
↓ 1 callers
Function
safe_entry_point
Run the CLI tool in try-except block to catch all exceptions.
ddgs/cli.py:166
↓ 1 callers
Function
unwrap_bing_url
Decode the Bing-wrapped raw_url to extract the original url.
ddgs/engines/bing.py:13
Method
__call__
(cls, *args: Any, **kwargs: Any)
ddgs/__init__.py:35
Method
__dir__
(cls)
ddgs/__init__.py:42
Method
__enter__
Enter the context manager and return the DDGS instance.
ddgs/ddgs.py:60
Method
__exit__
Exit the context manager.
ddgs/ddgs.py:64
Method
__getattr__
(cls, name: str)
ddgs/__init__.py:39
Method
__init__
(self, cache_fields: set[str])
ddgs/results.py:109
Method
__init__
(self, proxy: str | None = None, timeout: int | None = None, *, verify: bool | str = True)
ddgs/base.py:35
Method
__init__
(self, min_token_length: int = 3)
ddgs/similarity.py:21
Method
__init__
( self, proxy: str | None = None, timeout: int | None = 5, *, verify:
ddgs/ddgs.py:46
Method
__init__
(self, resp: Any)
ddgs/http_client.py:18
Method
__init__
Initialize the HttpClient object. Args: proxy (str, optional): proxy for the HTTP client, supports http/https/socks5 protocols.
ddgs/http_client.py:43
Method
__len__
Return the number of items in the cache.
ddgs/results.py:124
Function
_convert_tuple_to_csv
(_ctx: click.Context, _param: click.Parameter, value: tuple[str] | None)
ddgs/cli.py:45
Function
_download_file
(url: str, dir_path: str, filename: str, proxy: str | None, *, verify: bool)
ddgs/cli.py:114
Function
_normalize_date
Normalize date from integer to ISO format if applicable.
ddgs/utils.py:63
Function
_normalize_text
Normalize text. Strip HTML tags, unescape HTML entities, normalize Unicode, remove "c" category characters, and collapse whitespace.
ddgs/utils.py:36
Function
_normalize_url
Unquote URL and replace spaces with '+'.
ddgs/utils.py:31
Function
api
Start/stop the DDGS API server. Starts a FastAPI server with REST endpoints for search tools. Supports text, image, news, video, and book sea
ddgs/cli.py:606
Function
books
CLI function to perform a DDGS books metasearch.
ddgs/cli.py:507
Method
build_payload
Build a payload for the search request.
ddgs/engines/bing_images.py:22
Method
build_payload
Build a payload for the search request.
ddgs/engines/duckduckgo_videos.py:43
Method
build_payload
Build a payload for the search request.
ddgs/engines/yahoo.py:35
Method
build_payload
Build a payload for the search request.
ddgs/engines/yandex.py:32
Method
build_payload
Build a payload for the search request.
ddgs/engines/brave.py:27
Method
build_payload
Build a payload for the search request.
ddgs/engines/duckduckgo_news.py:36
Method
build_payload
Build a payload for the Bing search request.
ddgs/engines/bing_news.py:53
Method
build_payload
Build a payload for the Bing search request.
ddgs/engines/bing.py:50
Method
build_payload
Build a payload for the search request.
ddgs/engines/duckduckgo_images.py:47
Method
build_payload
Build a payload for the Google search request.
ddgs/engines/google.py:43
Method
build_payload
Build a payload for the search request.
ddgs/engines/grokipedia.py:24
Method
build_payload
Build a payload for the search request.
ddgs/engines/annasarchive.py:33
Method
build_payload
Build a payload for the search request.
ddgs/engines/wikipedia.py:25
Method
build_payload
Build a payload for the Startpage search request.
ddgs/engines/startpage.py:39
Method
build_payload
Build a payload for the search request.
ddgs/engines/duckduckgo.py:23
Method
build_payload
Build a payload for the search request.
ddgs/engines/yahoo_news.py:77
Method
build_payload
Build a payload for the search request.
ddgs/engines/mojeek.py:27
Function
extract
CLI function to extract content from a URL.
ddgs/cli.py:546
Function
extract_content
Extract content from a URL. Args: url: The URL to fetch and extract content from. fmt: Output format: "text_markdown", "text_plai
ddgs/api_server/mcp.py:230
Function
extract_content
Extract text content from a URL.
ddgs/api_server/api.py:423
Function
extract_content_get
Extract text content from a URL via GET request.
ddgs/api_server/api.py:438
Method
extract_results
Extract search results from html text.
ddgs/engines/bing_images.py:45
Method
extract_results
Extract search results from lxml tree.
ddgs/engines/duckduckgo_videos.py:73
Method
extract_results
Extract search results from lxml tree.
ddgs/engines/duckduckgo_news.py:61
Method
extract_results
Extract search results from html text.
ddgs/engines/duckduckgo_images.py:84
Method
extract_results
Extract search results from html text.
ddgs/engines/grokipedia.py:37
Method
extract_results
Extract search results from html text.
ddgs/engines/wikipedia.py:44
Function
health_check
Health check endpoint.
ddgs/api_server/api.py:142
Function
images
CLI function to perform a DDGS images metasearch.
ddgs/cli.py:319
Function
mcp
Start DDGS MCP server over stdio for local MCP clients. Examples: ddgs mcp # Start MCP server using stdio tran
ddgs/cli.py:567
next →
1–100 of 153, ranked by callers