-
Clone the repository
https://github.com/surajk16/SaveRems
-
Install the requirements
pip3 install -r requirements.txt
-
Create Output Directory
mkdir output && mkdir output/html && mkdir output/pdf
-
Install wkhtmltopdf
-
Run the flask webserver
export FLASK_APP=web.py
flask run
-
Run the python script by passing in your webmail/email and password as params.
python3 rems.py sample@gmail.com password
-
To autorun script on changes to rems.py and template.html, install inotifywait and run the command
while inotifywait -e close_write template/template.html; do python3 rems.py sample@gmail.com password; done
andwhile inotifywait -e close_write rems.py; do python3 rems.py sample@gmail.com password; done
from the working directory. -
Find the output html and pdf in the output folder.