Commit e25b129b authored by Renán Sosa Guillen's avatar Renán Sosa Guillen

crawler updated

parent 4aaa967b
...@@ -56,7 +56,7 @@ class QuotesSpider(scrapy.Spider): ...@@ -56,7 +56,7 @@ class QuotesSpider(scrapy.Spider):
text = '' text = ''
"La fecha obtenida ya incluye formato y zona horaria" "La fecha obtenida ya incluye formato y zona horaria"
item['date'] = response.xpath('//span[@class="td-post-date"]/time/@datetime').extract_first() item['date'] = response.css('span.td-post-date').css('time.entry-date::attr(datetime)').extract_first()
item['title'] = remove_tags(response.xpath('//header[@class="td-post-title"]/h1').extract_first()).strip() item['title'] = remove_tags(response.xpath('//header[@class="td-post-title"]/h1').extract_first()).strip()
try: try:
......
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