Metadata-Version: 2.4
Name: pytero
Version: 0.1.0
Summary: NIRI scraping and other utilities for Itero dental analysis 
Project-URL: Homepage, https://github.com/ImaneChafi/Pytero
Project-URL: Issues, https://github.com/ImaneChafi/Pytero/issues
Author-email: Ryan Bartolomeo <ryan.bartolomeo@polymtl.ca>, Imane Chafi <imane.chafi@etud.polymtl.ca>
License-Expression: MIT
License-File: LICENSE
Keywords: dentist,iTero,scrapping
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Requires-Dist: selenium>=4.36.0
Requires-Dist: watchdog>=6.0.0
Description-Content-Type: text/markdown

# Pytero
NIRI scraping and other utilities for Itero dental analysis 
---

Before doing anything, you must "log in" with your doctor username and password. From Linux/MacOS, run this script in your terminal and modify correctly the tree dots :

```bash
export DOCTOR_ID=...
export DOCTOR_PASSWORD=...

```
## Exemple

```py
from pytero.ExtractScans import ExtractScans

SAVE_FOLDER  = "~/Downloads"
DOCTOR_ID = os.environ['DOCTOR_ID'] # john.smith@exemple.com
DOCTOR_PASSWORD = os.environ['DOCTOR_PWD'] # 1234

extractor = ExtractScans(DOCTOR_ID, DOCTOR_PASSWORD, SAVE_FOLDER)    

# List of patients UUID (avaible in webpage source of iTero)
patients = [
    "8e6a6514-7bd3-43b0-979f-0b488fbdd62b",
    "e7725af2-34ff-4063-be08-0e92d639d89b"
]

for patient in patients:
    extractor.goToAllWebViews(
        whenOnScanView = extractor.exportZIPProcedure,
        patientId = patient
    )
```