diff options
author | Alexandre Flament <alex@al-f.net> | 2021-12-19 11:32:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-19 11:32:32 +0100 |
commit | b5d4cac7e1621f0ecc64f59f0b2c62c8c24e1bfd (patch) | |
tree | 11dbe7e849b104fef22a9a4cec0c0816b172b1b2 /searx | |
parent | 24f4ec530d77d3b4ed27a48839238460efe08b32 (diff) | |
parent | 2af50c25883d7e4d519be518585982ceabea22a4 (diff) | |
download | searxng-b5d4cac7e1621f0ecc64f59f0b2c62c8c24e1bfd.tar.gz searxng-b5d4cac7e1621f0ecc64f59f0b2c62c8c24e1bfd.zip |
Merge pull request #615 from return42/pylint-reddit
[pylint] Reddit engine
Diffstat (limited to 'searx')
-rw-r--r-- | searx/engines/reddit.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/engines/reddit.py b/searx/engines/reddit.py index e84e77220..ca6cb28a8 100644 --- a/searx/engines/reddit.py +++ b/searx/engines/reddit.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -""" - Reddit +# lint: pylint +"""Reddit """ import json @@ -26,16 +26,16 @@ base_url = 'https://www.reddit.com/' search_url = base_url + 'search.json?{query}' -# do search-request def request(query, params): + query = urlencode({'q': query, 'limit': page_size}) params['url'] = search_url.format(query=query) return params -# get response from search-request def response(resp): + img_results = [] text_results = [] |