Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] remove .encode for python3 compatibility

jibe-be391b2d970a1
diff --git a/searx/engines/arxiv.py b/searx/engines/arxiv.py
index 4b6440cbc..826b77690 100644
--- a/searx/engines/arxiv.py
+++ b/searx/engines/arxiv.py
@@ -41,7 +41,7 @@ def request(query, params):
def response(resp):
results = []
- search_results = html.fromstring(resp.text.encode('utf-8')).xpath('//entry')
+ search_results = html.fromstring(resp.text).xpath('//entry')
for entry in search_results:
title = entry.xpath('.//title')[0].text