@@ -47,8 +47,11 @@ def response(resp):
47 dom = html.fromstring(resp.text)
47 dom = html.fromstring(resp.text)
49 for result in dom.xpath(results_xpath):
49 for result in dom.xpath(results_xpath):
50− url = parse_url(extract_url(result.xpath(url_xpath), search_url))
51+ url = parse_url(extract_url(result.xpath(url_xpath), search_url))
51− title = extract_text(result.xpath(title_xpath)[0])
52+ title = extract_text(result.xpath(title_xpath)[0])
52 content = extract_text(result.xpath(content_xpath)[0])
55 content = extract_text(result.xpath(content_xpath)[0])
53 results.append({'url': url, 'title': title, 'content': content})
56 results.append({'url': url, 'title': title, 'content': content})