Commit 6fbfaf2c authored by Renán Sosa Guillen's avatar Renán Sosa Guillen

crawlers

parent 65d5e8f0
...@@ -97,8 +97,8 @@ class QuotesSpider(scrapy.Spider): ...@@ -97,8 +97,8 @@ class QuotesSpider(scrapy.Spider):
d = response.xpath('//time[@class="updated"]/@datetime').extract_first() d = response.xpath('//time[@class="updated"]/@datetime').extract_first()
## '-06:00' corresponde al UTC-6, zona horaria de yucatan (centro de mexico) ## '-06:00' corresponde al UTC-6, zona horaria de yucatan (centro de mexico)
if d[-6:] != '-06:00': if d[-6:] != '-00:00':
d = d[:-6] + '-06:00' d = d[:-6] + '-00:00'
item['date'] = d item['date'] = d
for paragraph in response.css('div.entry-content').css('p').extract(): for paragraph in response.css('div.entry-content').css('p').extract():
......
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