summaryrefslogtreecommitdiff
path: root/searx/engines/reddit.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-12-18 17:59:47 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-12-18 17:59:47 +0100
commit2af50c25883d7e4d519be518585982ceabea22a4 (patch)
treec739a0d186cfe76e8d9b2ff589054e20713d1568 /searx/engines/reddit.py
parent2713ac6c0b5aeca29ca1ade6df1b962e9396fdd0 (diff)
downloadsearxng-2af50c25883d7e4d519be518585982ceabea22a4.tar.gz
searxng-2af50c25883d7e4d519be518585982ceabea22a4.zip
[pylint] Reddit engine
Add Reddit engine to pylint process Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/reddit.py')
-rw-r--r--searx/engines/reddit.py8
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 = []