how to get the last week start date and end date based on date in current week scrapy (Monday - Sunday)
Example: if date is 04-feb-15, then result should be start_date = Monday(26-jan-1015) end_date = Sunday(1-feb-15)
if date is 27-feb-15, , then result should be start_date = Monday(16-feb-1015) end_date = (22-feb-15)
I have trying this:
date =aaa.xpath('xxx')
if date < datetime.datetime.today():