Edit the variables in private_variables.py
.
Because your computer might not be on 24/7, I run this script multiple times per day (between 06:00 and 21:00 every hour). I do this by adding a cron job at my Raspberry Pi, by using crontab -e
and then adding:
0 8-21/1 * * 1-5 /usr/bin/python /home/pi/arxiv-feed-mailer/send_arxiv.py >> /home/pi/arxiv-feed-mailer/send.log 2>&1
- Follow step 1: Turn on the Gmail API to create a
client_secret.json
file. - Install the Google Client Library and other Python dependencies with:
pip install --upgrade google-api-python-client feedparser
- Run (add the
--noauth_local_webserver
flag if you work throughssh
)
python gmailsendapi.py
This is an entire screen capture of the e-mail: