[fix] yep engine: remove links to other engines

Yep includes links to search for the same query on Google and other
search engines as a result in the search result. This fix skips these
results.
This commit is contained in:
0xhtml 2024-09-11 16:44:58 +02:00 committed by Bnyro
parent 5cca3f6ef2
commit c45870dd71

View file

@ -67,6 +67,8 @@ def response(resp):
for result in resp.json()[1]['results']: for result in resp.json()[1]['results']:
if search_type == "web": if search_type == "web":
if result['type'] != 'Organic':
continue
results.append(_web_result(result)) results.append(_web_result(result))
elif search_type == "images": elif search_type == "images":
results.append(_images_result(result)) results.append(_images_result(result))