My project involves a Django website using data from a .csv file generated from a web scraping script, which needs to be hosted on Heroku.
My development OS is Windows 10.
When my development server is run, it initially executes the script under the main application's views.py file:
exec(open('homepage/scrape.py').read())
where homepage is the name of the main application of the project and scrape.py is the web scraping script.
What I need to occur is for this scrape.py to run every hour and be able to work on both a Heroku dyno and my Windows development environment.
Thanks.