Commit 720f6059 authored by Renán Sosa Guillen's avatar Renán Sosa Guillen

Ajuste "date"

parent 53570a6e
...@@ -50,7 +50,7 @@ class QuotesSpider(scrapy.Spider): ...@@ -50,7 +50,7 @@ class QuotesSpider(scrapy.Spider):
def parse_item(self, response): def parse_item(self, response):
item = NoticiasItem() item = NoticiasItem()
text = '' text = ''
item['date'] = response.xpath('//meta[@property="article:published_time"]/@content').extract_first() item['date'] = response.xpath('//time[@class="entry-date updated"]/@datetime').extract_first()
item['title'] = response.xpath('//h1[@class="entry-title"]/text()').extract_first() item['title'] = response.xpath('//h1[@class="entry-title"]/text()').extract_first()
item['topic'] = response.xpath('//*[@class="entry-cat"]/a/text()').extract_first() item['topic'] = response.xpath('//*[@class="entry-cat"]/a/text()').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