diff options
Diffstat (limited to 'python/download_scotia.py')
| -rw-r--r-- | python/download_scotia.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python/download_scotia.py b/python/download_scotia.py index 9b5f2af8..c8072d31 100644 --- a/python/download_scotia.py +++ b/python/download_scotia.py @@ -5,9 +5,14 @@ from selenium.webdriver.common.by import By from selenium.webdriver.firefox.options import Options from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait +import logging +import sys from serenitas.utils.env import DAILY_DIR +logging.basicConfig(stream=sys.stdout, level=logging.INFO) +logger = logging.getLogger(__name__) + def wait(driver): WebDriverWait(driver, 10).until( @@ -42,7 +47,7 @@ def download_report(account_username, password, report_dir): if not os.path.exists(os.path.join(report_dir, fname)): elements.click() else: - print(f"{fname} exists already in {report_dir}") + logging.info(f"{fname} exists already in {report_dir}") driver.quit() |
