This is command to run my scraper.
scrapy crawl monitor -a filename="ScrapeProject.csv" -o filename.csv
It runs and saves the scraped data into filename.csv
I want to schedule as cronjob I want filename.csv to be the current datetime the scraper ran.
I tried with back-ticks but didnt work
scrapy crawl monitor -a filename="ScrapeProject.csv" -o `date`.csv
Also tried like that
scrapy crawl monitor -a filename="ScrapeProject.csv" -o "date".csv
EDIT:
Below is the command I ran upon @dps recommendation but it prompts me to enter something?
root@ubuntu:/home/mani/pricemonitor# scrapy crawl monitor -a filename="ScrapeProject.csv" -o `date +\%m`.`date +\%d`.`date +\%y`.csv`
>
>