diff options
author | asciimoo <asciimoo@gmail.com> | 2013-11-09 18:39:20 +0100 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2013-11-09 18:39:20 +0100 |
commit | 17bf00ee42583910e45794e1438a2bab459225ad (patch) | |
tree | f1fc78646676c40c39cda1de9b69cf5dc39ff263 /searx/engines/startpage.py | |
parent | 14a53e343085083d0ddf271adff2d13ca1c94f99 (diff) | |
download | searxng-17bf00ee42583910e45794e1438a2bab459225ad.tar.gz searxng-17bf00ee42583910e45794e1438a2bab459225ad.zip |
[enh] removing result html tags
Diffstat (limited to 'searx/engines/startpage.py')
-rw-r--r-- | searx/engines/startpage.py | 4 |
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} |