diff options
author | asciimoo <asciimoo@gmail.com> | 2013-10-24 23:43:39 +0200 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2013-10-24 23:43:39 +0200 |
commit | cf6a92a996e9b110de1d0d7272ab4a1046177352 (patch) | |
tree | c8d99917539b03411cf7115ff90b9e08a7408ae8 /searx/engines/startpage.py | |
parent | 7ddf7d43ba32aa4450cdedb09093989f441648d1 (diff) | |
download | searxng-cf6a92a996e9b110de1d0d7272ab4a1046177352.tar.gz searxng-cf6a92a996e9b110de1d0d7272ab4a1046177352.zip |
[fix] urljoin removed
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 a96179646..47273e6e7 100644 --- a/searx/engines/startpage.py +++ b/searx/engines/startpage.py @@ -1,6 +1,6 @@ from urllib import quote from lxml import html -from urlparse import urljoin, urlparse +from urlparse import urlparse from cgi import escape base_url = 'https://startpage.com/' @@ -21,7 +21,7 @@ def response(resp): 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')) + url = link.attrib.get('href') parsed_url = urlparse(url) # TODO better google link detection if parsed_url.netloc.find('www.google.com') >= 0: |