I have written a Python program that scrapes information from a website using regex. My goal is to create a cron job to run this scraper each month.
I have gone into the Linux terminal, typed in crontab -e
, and added to the bottom of the crontab file:
**
#!/usr/bin/python chmod +x
30 8 1 * * /home/pi/Nikita/The_Scraper/thescraper.py
PATH=/home/pi/Nikita/The_Scraper/thescraper.py
MAILTO="myemailaddress@gmail.com"
**
I am wondering:
If this is the correct text to include in the crontab file
How to verify if my scraper program with run each month and the cron job I created is working