Updated scraper.py

This commit is contained in:
muskit
2023-08-20 23:27:10 -07:00
parent edd907cd22
commit f6c2d4c42a
+2
View File
@@ -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}")