mirror of
https://github.com/searxng/searxng.git
synced 2024-11-20 03:10:10 +01:00
[mod] tineye engine: minor changes
* remove "disable: false" in settings.yml * use the json() method from httpx.Response (faster character encoding detection)
This commit is contained in:
parent
a6b879f19c
commit
ebd3013a1a
@ -15,7 +15,6 @@ billion images `[tineye.com] <https://tineye.com/how>`_.
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from json import loads
|
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
@ -64,7 +63,7 @@ def response(resp):
|
|||||||
results = []
|
results = []
|
||||||
|
|
||||||
# Define wanted results
|
# Define wanted results
|
||||||
json_data = loads(resp.text)
|
json_data = resp.json()
|
||||||
number_of_results = json_data['num_matches']
|
number_of_results = json_data['num_matches']
|
||||||
|
|
||||||
for i in json_data['matches']:
|
for i in json_data['matches']:
|
||||||
|
@ -487,7 +487,6 @@ engines:
|
|||||||
engine: tineye
|
engine: tineye
|
||||||
shortcut: tin
|
shortcut: tin
|
||||||
timeout: 9.0
|
timeout: 9.0
|
||||||
disabled: false
|
|
||||||
|
|
||||||
- name: etymonline
|
- name: etymonline
|
||||||
engine: xpath
|
engine: xpath
|
||||||
|
Loading…
Reference in New Issue
Block a user