This repo is built with pipenv
.
Before to run you have to declare a .env
file with this format :
email = 'YOUR_EMAIL'
KEY = 'YOUR_PASSWORD'
For gmail account you should activate double-authentication (2FA) and setup an app passwords : Sign in with app passwords - Google Account Help.
After this you can run this repo with :
pipenv shell
> pipenv install --ignore-pipfile
> python3 script.py
The repository is structured around each categories from TLDR newsletter. Each email is saved in format articles_{date_reception}.md
in corresponding folder.
The ids.txt
file is used to save each email's id to be able to not do again the treatment if it's already done.
Some tests and archives are still in the repo.
To run automation I use crontab -e
with the cronjob file content.
Warning ! You have to authorise acces with chmod +x automation.sh && chmod +x script_push.sh
to be able to use it.
Improve render. We need to select the Title for each article add (TITLE)
before [LINK]
.