From f6c2d4c42afd61c60edf9f4c9ca1e8249a79e6c8 Mon Sep 17 00:00:00 2001 From: muskit <15199219+muskit@users.noreply.github.com> Date: Sun, 20 Aug 2023 23:27:10 -0700 Subject: [PATCH] Updated scraper.py --- src/scraper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scraper.py b/src/scraper.py index 3865f5d..6239d52 100644 --- a/src/scraper.py +++ b/src/scraper.py @@ -21,11 +21,13 @@ class Scraper: self.try_login() def try_login(self, account_idx: int = None) -> bool: + # decide on which account to use if account_idx is not None: acc = self.__account.use_index(account_idx) else: acc = self.__account.next() + # attempt to login with the account if acc is not None: name = acc[0] print(f"using {name}")