[fix] Qwant engines - implement API v3 and add 'quant videos'

The implementation uses the Qwant API (https://api.qwant.com/v3). The API is
undocumented but can be reverse engineered by reading the network log of
https://www.qwant.com/ queries.

This implementation is used by different qwant engines in the settings.yml::

  - name: qwant
    categories: general
    ...
  - name: qwant news
    categories: news
    ...
  - name: qwant images
    categories: images
    ...
  - name: qwant videos
    categories: videos
    ...

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-07-13 18:16:09 +02:00
parent ff180cf2db
commit ef6e1bd6b9
3 changed files with 201 additions and 72 deletions

View file

@ -990,16 +990,25 @@ engines:
additional_tests:
rosebud: *test_rosebud
- name: qwant images
engine: qwant
shortcut: qwi
categories: images
network: qwant
- name: qwant news
engine: qwant
shortcut: qwn
categories: news
disabled: true
network: qwant
- name: qwant images
engine: qwant
shortcut: qwi
categories: images
disabled: true
network: qwant
- name: qwant videos
engine: qwant
shortcut: qwv
categories: videos
disabled: true
network: qwant
# - name: library