From 6f2b8aca5e36196f6370951d915b06356a2549db Mon Sep 17 00:00:00 2001 From: pw3t Date: Sun, 29 Dec 2013 21:43:13 +0100 Subject: [PATCH] [fix] fix an error in the query --- searx/engines/filecrop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/engines/filecrop.py b/searx/engines/filecrop.py index b2adff235..a1a933db9 100644 --- a/searx/engines/filecrop.py +++ b/searx/engines/filecrop.py @@ -4,7 +4,7 @@ from searx.utils import html_to_text from HTMLParser import HTMLParser url = 'http://www.filecrop.com/' -search_url = url + '/search.php?w={query}&size_i=0&size_f=100000000&engine_r=1&engine_d=1&engine_e=1&engine_4=1&engine_m=1' +search_url = url + '/search.php?{query}&size_i=0&size_f=100000000&engine_r=1&engine_d=1&engine_e=1&engine_4=1&engine_m=1' class FilecropResultParser(HTMLParser): def __init__(self): @@ -63,7 +63,7 @@ class FilecropResultParser(HTMLParser): self.data_counter += 1 def request(query, params): - params['url'] = search_url.format(query=urlencode({'q': query})) + params['url'] = search_url.format(query=urlencode({'w' :query})) return params def response(resp):