Browse Source

[fix] urljoin removed

asciimoo 11 years ago
parent
commit
cf6a92a996
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      searx/engines/startpage.py

+ 2
- 2
searx/engines/startpage.py View File

@@ -1,6 +1,6 @@
1 1
 from urllib import quote
2 2
 from lxml import html
3
-from urlparse import urljoin, urlparse
3
+from urlparse import urlparse
4 4
 from cgi import escape
5 5
 
6 6
 base_url = 'https://startpage.com/'
@@ -21,7 +21,7 @@ def response(resp):
21 21
     dom = html.fromstring(resp.content)
22 22
     for result in dom.xpath('//div[@class="result"]'):
23 23
         link = result.xpath('.//h3/a')[0]
24
-        url = urljoin(base_url, link.attrib.get('href'))
24
+        url = link.attrib.get('href')
25 25
         parsed_url = urlparse(url)
26 26
         # TODO better google link detection
27 27
         if parsed_url.netloc.find('www.google.com') >= 0: