Skip to content

Daily e-mail with filtered new arXiv entries using Gmail API 📃

License

Notifications You must be signed in to change notification settings

basnijholt/arxiv-feed-mailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arXiv feed checker and mailer

How to use

Setup arXiv feed checker with private variables

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

Setup Google API

  1. Follow step 1: Turn on the Gmail API to create a client_secret.json file.
  2. Install the Google Client Library and other Python dependencies with:
pip install --upgrade google-api-python-client feedparser
  1. Run (add the --noauth_local_webserver flag if you work through ssh)
python gmailsendapi.py

Example result

This is an entire screen capture of the e-mail:

About

Daily e-mail with filtered new arXiv entries using Gmail API 📃

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages