Qwant¶
This engine uses the Qwant API (https://api.qwant.com/v3) to implement Qwant -Web, -News, -Images and -Videos. The API is undocumented but can be reverse engineered by reading the network log of https://www.qwant.com/ queries.
For Qwant’s web-search two alternatives are implemented:
web: uses theapi_urlwhich returns a JSON structure
Configuration¶
The engine has the following additional settings:
This implementation is used by different qwant engines in the settings.yml:
- name: qwant
qwant_categ: web
...
- name: qwant news
qwant_categ: news
...
- name: qwant images
qwant_categ: images
...
- name: qwant videos
qwant_categ: videos
...
Implementations¶
- searx.engines.qwant.max_page = 5¶
5 pages maximum (
&p=5): Trying to do more just results in an improper redirect
- searx.engines.qwant.api_url = 'https://api.qwant.com/v3/search/'¶
URL of Qwant’s API (JSON)
- searx.engines.qwant.request(query: str, params: OnlineParams) None[source]¶
Qwant search request
- searx.engines.qwant.response(resp: SXNG_Response) EngineResults[source]¶
Parse results from Qwant’s API