@@ -46,12 +46,11 @@ def request(query, params):
4646def response(resp):
4747 results = []
4848 dom = html.fromstring(resp.text)
49− query = resp.search_params['query']
5049 if results_xpath:
5150 for result in dom.xpath(results_xpath):
5251 url = extract_url(result.xpath(url_xpath))
5352 title = ' '.join(result.xpath(title_xpath))
54− content = escape(' '.join(result.xpath(content_xpath))).replace(query, '<b>{0}</b>'.format(query))
53+ content = escape(' '.join(result.xpath(content_xpath)))
5554 results.append({'url': url, 'title': title, 'content': content})
5655 else:
5756 for content, url, title in zip(dom.xpath(content_xpath), map(extract_url, dom.xpath(url_xpath)), dom.xpath(title_xpath)):