summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorpw3t <romain@berthor.fr>2013-12-29 21:43:13 +0100
committerpw3t <romain@berthor.fr>2013-12-29 21:43:56 +0100
commit6f2b8aca5e36196f6370951d915b06356a2549db (patch)
tree8daf7956ee9ce11a21ed38a98bc920b361420945 /searx
parenta492ca6dedc477655f5cfcfb67b845779b825348 (diff)
downloadsearxng-6f2b8aca5e36196f6370951d915b06356a2549db.tar.gz
searxng-6f2b8aca5e36196f6370951d915b06356a2549db.zip
[fix] fix an error in the query
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/filecrop.py4
1 files 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):