Skip to content

Latest commit

 

History

History
executable file
·
29 lines (20 loc) · 938 Bytes

README.md

File metadata and controls

executable file
·
29 lines (20 loc) · 938 Bytes

SaveRems

Setup

  1. Clone the repository https://github.com/surajk16/SaveRems

  2. Install the requirements pip3 install -r requirements.txt

  3. Create Output Directory mkdir output && mkdir output/html && mkdir output/pdf

  4. Install wkhtmltopdf

  5. Run the flask webserver

export FLASK_APP=web.py
flask run
  1. Run the python script by passing in your webmail/email and password as params. python3 rems.py sample@gmail.com password

  2. 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 and while inotifywait -e close_write rems.py; do python3 rems.py sample@gmail.com password; done from the working directory.

  3. Find the output html and pdf in the output folder.