I created a program that requires a sequence of command line instructions to scrape new information and update the databases.
Is there a way to automate this process so I don't have to type all this stuff in the terminal each time I sit down? Maybe have it so the first 3 steps run every hour and step 4 runs at 2am as it can take a long time to complete.
Step 1: In terminal:
...Documents/dota2/dotaapi2/ python match_scraper.py
Step 2: In terminal
psql dota2apidb
update games set online=1 where online is null;
Step 3: In terminal:
...Documents/dota2/gosugamers/gosugamers/spiders/ scrapy crawl dota
Step 4: In terminal: (execute once at 2am only)
...Documents/dota2/dotaapi2/ python gosu_merge.py
...Documents/dota2/dotaapi2/ python unticketed.py
cron
?