This is an script for extracting emails from Gmail.
In order to use it:
- Install the project dependencies.
- Go to the Google console and download your
credentials.json
in the root of the project. - Run
python main.py $OUTPUT_PATH $QUERY
.
The script should download your emails to the specified directory.
python main.py ~/emails 'after:2019/05/05 from:notificacionesbanorte@banorte.com OR from:notificaciones@banorte.com'