Commit 89e23bab authored by Renán Sosa Guillen's avatar Renán Sosa Guillen

crawlers

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