Commit 5d702f68 authored by Mario Chirinos's avatar Mario Chirinos

last date finder

parent bfa818df
...@@ -55,7 +55,7 @@ def crawlNews(directory, cfg, endDate=datetime.datetime.now()): ...@@ -55,7 +55,7 @@ def crawlNews(directory, cfg, endDate=datetime.datetime.now()):
print("dir: ", yeardir) print("dir: ", yeardir)
print(day) print(day)
print("CWD:", os.getcwd()) print("CWD:", os.getcwd())
return # return
print("scrapy crawl noticias --nolog -O "+yeardir+day.strftime('%Y-%m-%d')+".json -a year="+str(day.year)+" -a month="+str(day.month)+" -a day="+str(day.day)+"") print("scrapy crawl noticias --nolog -O "+yeardir+day.strftime('%Y-%m-%d')+".json -a year="+str(day.year)+" -a month="+str(day.month)+" -a day="+str(day.day)+"")
#=============================================================================== #===============================================================================
......
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