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] urljoin removed
asciimoocf6a92a996e9
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.pyindex a96179646..47273e6e7 100644--- a/searx/engines/startpage.py+++ b/searx/engines/startpage.py@@ -1,6 +1,6 @@from urllib import quotefrom lxml import html-from urlparse import urljoin, urlparse+from urlparse import urlparsefrom cgi import escapebase_url = 'https://startpage.com/'@@ -21,7 +21,7 @@ def response(resp):dom = html.fromstring(resp.content)for result in dom.xpath('//div[@class="result"]'):link = result.xpath('.//h3/a')[0]- url = urljoin(base_url, link.attrib.get('href'))+ url = link.attrib.get('href')parsed_url = urlparse(url)# TODO better google link detectionif parsed_url.netloc.find('www.google.com') >= 0: