This is a school project
I always wanted to be able to get all the sleep data from my Resmed account.
The steps are :
- Auth to the resmed website using selenium
- Fetch the OTP code sent via email to my gmail account and use it
- Get all yearly datas from the History.aspx page
The output is a pandas Dataframe containing the yearly sleep datas
Thanks to handyman5 for the inspiration
Activate imap in your google account
Generate a Google Application Password
Edit the config.json to put your resmed and gmail credentials
python3 scrape.py