Commit 548fa45c authored by Mario Chirinos's avatar Mario Chirinos

last date finder

parent 3ae28b6c
......@@ -45,6 +45,7 @@ def crawlNews(directory, cfg, endDate=datetime.datetime.now()):
startDate=datetime.datetime.strptime(cfg["startDate"], '%Y-%m-%d')
print("start: ", startDate, "end: ", endDate)
delta = endDate-startDate
print("Days to crawl:", delta)
return 0
for i in range(delta.days + 1):
day = startDate + datetime.timedelta(days=i)
......
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