1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-19 02:40:11 +01:00

fix pep8 errors

This commit is contained in:
Noemi Vanyi 2016-02-04 21:01:44 +01:00
parent 33fa3da2e8
commit 3034c85163
2 changed files with 5 additions and 3 deletions

View File

@ -20,10 +20,12 @@ RESULT_URL = '{base}?{query}'
THUMB_URL = '{base}img/{episode}/{timestamp}/medium.jpg'
IMAGE_URL = '{base}img/{episode}/{timestamp}.jpg'
def request(query, params):
params['url'] = SEARCH_URL.format(base=BASE, query=urlencode({'q': query}))
return params
def response(resp):
results = []
response_data = loads(resp.text)