diff options
author | Alexandre Flament <alex@al-f.net> | 2021-03-18 19:59:01 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-04-10 15:38:33 +0200 |
commit | eaa694fb7d0e47b943bc6d6edb6cb6a40ab2d85e (patch) | |
tree | 024786c8a7003be24bbc566cb8c8e734a143f99d /searx/engines/seznam.py | |
parent | 111180705b6f3b142732eb6325de1346f6372828 (diff) | |
download | searxng-eaa694fb7d0e47b943bc6d6edb6cb6a40ab2d85e.tar.gz searxng-eaa694fb7d0e47b943bc6d6edb6cb6a40ab2d85e.zip |
[enh] replace requests by httpx
Diffstat (limited to 'searx/engines/seznam.py')
-rw-r--r-- | searx/engines/seznam.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/engines/seznam.py b/searx/engines/seznam.py index faceb0550..c058ebb76 100644 --- a/searx/engines/seznam.py +++ b/searx/engines/seznam.py @@ -3,7 +3,7 @@ Seznam """ -from urllib.parse import urlencode, urlparse +from urllib.parse import urlencode from lxml import html from searx.poolrequests import get from searx.exceptions import SearxEngineAccessDeniedException @@ -46,8 +46,7 @@ def request(query, params): def response(resp): - resp_url = urlparse(resp.url) - if resp_url.path.startswith('/verify'): + if resp.url.path.startswith('/verify'): raise SearxEngineAccessDeniedException() results = [] |