dont do stupid task
This script is created to track price variation on online e commerce site. Quick How-To:
- Change the URLs to your desired product URL.
- Change the Regex if required.
- Deploy on Heroku.
- Heroku passivates your app if there is no traffic for 1 hour; Hence every 40 minutes Dost sents a requests to (touches) itself to save from falling asleep.
- Heroku resets the dyno once a day. Hence if you want to save the price variation statistics then you should save the JSON to a persistent storage.