scrapycommand="scrapy crawl noticias -t json --nolog -o "+filename+" -a year="+str(currentDate.year)+" -a month="+str(currentDate.month)+" -a day="+str(currentDate.day)
# scrapycommand = "scrapy crawl noticias -t json --nolog -o " + filename + " -a year="+str(currentDate.year)+ " -a month="+str(currentDate.month)+" -a day="+str(currentDate.day)
scrapycommand="scrapy crawl noticias --nolog -s filename="+filename+" -a year="+str(currentDate.year)+" -a month="+str(currentDate.month)+" -a day="+str(currentDate.day)
mydir=os.getcwd()
mydir=os.getcwd()
printmydir
printmydir
os.chdir(scrapyDir+s['crawler'])
os.chdir(scrapyDir+s['crawler'])
...
@@ -123,13 +69,8 @@ with open(sys.argv[1]) as data_file:
...
@@ -123,13 +69,8 @@ with open(sys.argv[1]) as data_file: