Script that create a calendar file (.ics) with all holidays in year, based in Brazil/Recife-PE holidays. This file generated is sent by email, and user should be import manually in Google Calendar
- The script only add holidays that different to Saturday and Sunday
- The script also add Carnival \o/
- Enable an 2-step-authentication in yout Google Account (this is necessary to next step)
- Create and App Password to
Mail
The script use the environment variables to config email:
- EMAIL_FROM: Sender email
- EMAIL_TO: Receiver email
- EMAIL_APP_PASSWORD: App Password created
pip3 install -r requirements.txt
Create a file called .env
with this content:
export EMAIL_FROM="sender_email@email.com"
export EMAIL_TO="receiver_email@email.com"
export EMAIL_APP_PASSWORD="<APP_PASSWORD>"
After, run source .env
python3 app.py