mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 04:00:02 +00:00
Drop Python 2 (1/n): remove unicode string and url_utils
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
More info on api: https://arxiv.org/help/api/user-manual
|
||||
"""
|
||||
|
||||
from urllib.parse import urlencode
|
||||
from lxml import html
|
||||
from datetime import datetime
|
||||
from searx.url_utils import urlencode
|
||||
|
||||
|
||||
categories = ['science']
|
||||
@@ -30,7 +30,7 @@ def request(query, params):
|
||||
# basic search
|
||||
offset = (params['pageno'] - 1) * number_of_results
|
||||
|
||||
string_args = dict(query=query.decode('utf-8'),
|
||||
string_args = dict(query=query.decode(),
|
||||
offset=offset,
|
||||
number_of_results=number_of_results)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user