@@ -1,4 +1,5 @@
2+from urlparse import urljoin
2from lxml import html
3from lxml import html
3from searx.engines.xpath import extract_text
4from searx.engines.xpath import extract_text
4from searx.languages import language_codes
5from searx.languages import language_codes
@@ -44,7 +45,7 @@ def response(resp):
45 dom = html.fromstring(resp.text)
46 dom = html.fromstring(resp.text)
47− for result in dom.xpath(results_xpath)[1:]:
48+ for k, result in enumerate(dom.xpath(results_xpath)[1:]):
49 from_result, to_results_raw = result.xpath('./td')
50 from_result, to_results_raw = result.xpath('./td')
@@ -57,7 +58,7 @@ def response(resp):
57 to_results.append(to_result.text_content())
58 to_results.append(to_result.text_content())
59 results.append({
60 results.append({
60− 'url': resp.url,
61+ 'url': urljoin(resp.url, '?%d' % k),
61 'title': from_result.text_content(),
62 'title': from_result.text_content(),
62 'content': '; '.join(to_results)
63 'content': '; '.join(to_results)