SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] Python 3.9: use html.unescape instead of HTMLParser.unescape
Alexandre Flamenteb33ae6893ef
diff --git a/searx/engines/ina.py b/searx/engines/ina.pyindex 52c939498..ce241d409 100644--- a/searx/engines/ina.py+++ b/searx/engines/ina.py@@ -12,10 +12,10 @@# @todo embedded (needs some md5 from video page)from json import loads+from html import unescapefrom urllib.parse import urlencodefrom lxml import htmlfrom dateutil import parser-from html.parser import HTMLParserfrom searx.utils import extract_text@@ -55,13 +55,12 @@ def response(resp):if "content" not in response:return []dom = html.fromstring(response["content"])- p = HTMLParser()# parse resultsfor result in dom.xpath(results_xpath):videoid = result.xpath(url_xpath)[0]url = base_url + videoid- title = p.unescape(extract_text(result.xpath(title_xpath)))+ title = unescape(extract_text(result.xpath(title_xpath)))try:thumbnail = extract_text(result.xpath(thumbnail_xpath)[0])except: