mirror of
https://github.com/searxng/searxng.git
synced 2025-07-23 05:09:17 +02:00
Drop Python 2 (1/n): remove unicode string and url_utils
This commit is contained in:
parent
272158944b
commit
1022228d95
112 changed files with 388 additions and 535 deletions
|
@ -10,13 +10,13 @@
|
|||
@parse url, infobox
|
||||
"""
|
||||
|
||||
from urllib.parse import quote
|
||||
from json import loads
|
||||
from lxml.html import fromstring
|
||||
from searx.url_utils import quote
|
||||
from searx.utils import match_language, searx_useragent
|
||||
|
||||
# search-url
|
||||
search_url = u'https://{language}.wikipedia.org/api/rest_v1/page/summary/{title}'
|
||||
search_url = 'https://{language}.wikipedia.org/api/rest_v1/page/summary/{title}'
|
||||
supported_languages_url = 'https://meta.wikimedia.org/wiki/List_of_Wikipedias'
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue