summaryrefslogtreecommitdiff
path: root/searx/engines/startpage.py
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2013-11-09 18:39:20 +0100
committerasciimoo <asciimoo@gmail.com>2013-11-09 18:39:20 +0100
commit17bf00ee42583910e45794e1438a2bab459225ad (patch)
treef1fc78646676c40c39cda1de9b69cf5dc39ff263 /searx/engines/startpage.py
parent14a53e343085083d0ddf271adff2d13ca1c94f99 (diff)
downloadsearxng-17bf00ee42583910e45794e1438a2bab459225ad.tar.gz
searxng-17bf00ee42583910e45794e1438a2bab459225ad.zip
[enh] removing result html tags
Diffstat (limited to 'searx/engines/startpage.py')
-rw-r--r--searx/engines/startpage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py
index 47273e6e7..061c8158d 100644
--- a/searx/engines/startpage.py
+++ b/searx/engines/startpage.py
@@ -1,4 +1,4 @@
-from urllib import quote
+from urllib import urlencode
from lxml import html
from urlparse import urlparse
from cgi import escape
@@ -8,7 +8,7 @@ search_url = base_url+'do/search'
def request(query, params):
global search_url
- query = quote(query.replace(' ', '+'), safe='+')
+ query = urlencode({'q': query})[2:]
params['url'] = search_url
params['method'] = 'POST'
params['data'] = {'query': query}