Updated scraper.py
This commit is contained in:
@@ -21,11 +21,13 @@ class Scraper:
|
|||||||
self.try_login()
|
self.try_login()
|
||||||
|
|
||||||
def try_login(self, account_idx: int = None) -> bool:
|
def try_login(self, account_idx: int = None) -> bool:
|
||||||
|
# decide on which account to use
|
||||||
if account_idx is not None:
|
if account_idx is not None:
|
||||||
acc = self.__account.use_index(account_idx)
|
acc = self.__account.use_index(account_idx)
|
||||||
else:
|
else:
|
||||||
acc = self.__account.next()
|
acc = self.__account.next()
|
||||||
|
|
||||||
|
# attempt to login with the account
|
||||||
if acc is not None:
|
if acc is not None:
|
||||||
name = acc[0]
|
name = acc[0]
|
||||||
print(f"using {name}")
|
print(f"using {name}")
|
||||||
|
|||||||
Reference in New Issue
Block a user