Commit f0b353e1 authored by Mario Chirinos's avatar Mario Chirinos

en linea

parent 29283682
......@@ -39,7 +39,7 @@ class NoticiasSpider(scrapy.Spider):
item["title"]=response.xpath('//h1[@class="entry-title"]/text()').extract_first().replace("\t","").replace("\n","")
text=""
for p in response.xpath('//div[contains(@class,"entry-content")]/p').extract():
text += remove_tags(p) + "\n"
text += remove_tags(p) + "\n "
item["text"]=text
item['topic'] = ", ".join(response.xpath('//div[contains(@class,"entry-tags")]/a/text()').extract())
item['author'] = response.xpath('//meta[@name="author"]/@content').extract_first()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment