.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
duckduckgo_definitions.py File Reference

Go to the source code of this file.

Namespaces

namespace  searx
 
namespace  searx.engines
 ::1337x
 
namespace  searx.engines.duckduckgo_definitions
 

Functions

 searx.engines.duckduckgo_definitions.is_broken_text (text)
 
 searx.engines.duckduckgo_definitions.result_to_text (text, htmlResult)
 
 searx.engines.duckduckgo_definitions.request (query, params)
 
 searx.engines.duckduckgo_definitions.response (resp)
 
 searx.engines.duckduckgo_definitions.unit_to_str (unit)
 
 searx.engines.duckduckgo_definitions.area_to_str (area)
 

Variables

logging searx.engines.duckduckgo_definitions.logger .Logger
 
dict searx.engines.duckduckgo_definitions.about
 
bool searx.engines.duckduckgo_definitions.send_accept_language_header = True
 
str searx.engines.duckduckgo_definitions.URL = 'https://api.duckduckgo.com/' + '?{query}&format=json&pretty=0&no_redirect=1&d=1'
 
list searx.engines.duckduckgo_definitions.WIKIDATA_PREFIX = ['http://www.wikidata.org/entity/', 'https://www.wikidata.org/entity/']
 
 searx.engines.duckduckgo_definitions.replace_http_by_https = get_string_replaces_function({'http:': 'https:'})