'How to run code remotely using google cloud VM and a cronjob
I have a folder /scrapers containing 4 scrapers and a runnner.py file which runs the code, as well as a firebase-sdk.json file containing my firebase database information. I have been trying to set up a cronjob to run the code every 1 minute to run the scrapers which adds new news stories to a firebase realtime database I have a VM set up in google cloud computing engine but my code does not seem to be running. I am fairly inexperienced with this kind of thing so any help would be appreciated. I can provide more information if I have left anything out I was trying crontab -e and this is what I was using inside the crontab file
MAILTO = ""
* * * * * /usr/bin/python3 runner.py
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
