mirror of
https://github.com/searxng/searxng.git
synced 2026-09-12 17:26:05 +00:00
[fix] engines: naver images updated matcher
This commit is contained in:
@@ -136,9 +136,9 @@ def parse_general(data):
|
|||||||
def parse_images(data):
|
def parse_images(data):
|
||||||
results = []
|
results = []
|
||||||
|
|
||||||
match = extr(data, '<script>var imageSearchTabData=', '</script>')
|
match = extr(data, 'var imageSearchTabData =', '</script>')
|
||||||
if match:
|
if match:
|
||||||
json = js_obj_str_to_python(match.strip())
|
json = js_obj_str_to_python(match.strip().rstrip(';'))
|
||||||
items = json.get('content', {}).get('items', [])
|
items = json.get('content', {}).get('items', [])
|
||||||
|
|
||||||
for item in items:
|
for item in items:
|
||||||
|
|||||||
Reference in New Issue
Block a user