diff options
author | asciimoo <asciimoo@gmail.com> | 2013-10-24 21:00:44 +0200 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2013-10-24 21:00:44 +0200 |
commit | 7ddf7d43ba32aa4450cdedb09093989f441648d1 (patch) | |
tree | 7548659aa51c11f101d24a144cad813abed3fa88 /searx/engines/startpage.py | |
parent | 74b6be3991dc62577aca295de839e51e6d0807d6 (diff) | |
download | searxng-7ddf7d43ba32aa4450cdedb09093989f441648d1.tar.gz searxng-7ddf7d43ba32aa4450cdedb09093989f441648d1.zip |
[fix] character encoding fix
Diffstat (limited to 'searx/engines/startpage.py')
-rw-r--r-- | searx/engines/startpage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py index 2386dcabc..a96179646 100644 --- a/searx/engines/startpage.py +++ b/searx/engines/startpage.py @@ -18,7 +18,7 @@ def request(query, params): def response(resp): global base_url results = [] - dom = html.fromstring(resp.text) + dom = html.fromstring(resp.content) for result in dom.xpath('//div[@class="result"]'): link = result.xpath('.//h3/a')[0] url = urljoin(base_url, link.attrib.get('href')) |