|
@@ -198,13 +198,11 @@ def response(resp):
|
|
url = link.attrib.get('href')
|
|
url = link.attrib.get('href')
|
|
title = extract_text(link)
|
|
title = extract_text(link)
|
|
|
|
|
|
-
|
|
|
|
content = eval_xpath(result, '(.//p)[1]')
|
|
content = eval_xpath(result, '(.//p)[1]')
|
|
for p in content:
|
|
for p in content:
|
|
|
|
+
|
|
for e in p.xpath('.//a'):
|
|
for e in p.xpath('.//a'):
|
|
e.getparent().remove(e)
|
|
e.getparent().remove(e)
|
|
- for e in p.xpath('.//span[@class="algoSlug_icon"]'):
|
|
|
|
- e.getparent().remove(e)
|
|
|
|
content = extract_text(content)
|
|
content = extract_text(content)
|
|
|
|
|
|
|
|
|