trying to fix web start
This commit is contained in:
parent
3123a1dbd0
commit
3c74aa025e
72
V6.py
72
V6.py
|
@ -781,53 +781,53 @@ def json_start(json_entry, cred: UserCredentials):
|
||||||
config.WebDriver.set_pc_driver(create_driver())
|
config.WebDriver.set_pc_driver(create_driver())
|
||||||
config.WebDriver.switch_to_driver("PC")
|
config.WebDriver.switch_to_driver("PC")
|
||||||
driver = config.WebDriver.driver
|
driver = config.WebDriver.driver
|
||||||
try:
|
if "unban" in json_entry and str(account_id) in json_entry["unban"]:
|
||||||
if "unban" in json_entry and str(account_id) in json_entry["unban"]:
|
login()
|
||||||
login()
|
info("\nGO TO example.com TO PROCEED or wait 1200 secs.")
|
||||||
info("\nGO TO example.com TO PROCEED or wait 1200 secs.")
|
for _ in range(1200):
|
||||||
for _ in range(1200):
|
sleep(1)
|
||||||
sleep(1)
|
if driver.current_url == "https://example.com/":
|
||||||
if driver.current_url == "https://example.com/":
|
info("proceeding")
|
||||||
info("proceeding")
|
break
|
||||||
break
|
else:
|
||||||
else:
|
|
||||||
login()
|
|
||||||
except KeyError:
|
|
||||||
login()
|
login()
|
||||||
try:
|
|
||||||
if str(account_id) in json_entry["tout"]:
|
|
||||||
daily_routine(cred, True)
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
try:
|
try:
|
||||||
if str(account_id) in json_entry["daily"]:
|
if str(account_id) in json_entry["tout"]:
|
||||||
|
daily_routine(cred, True)
|
||||||
|
|
||||||
|
else:
|
||||||
try:
|
try:
|
||||||
all_cards()
|
if str(account_id) in json_entry["daily"]:
|
||||||
except Exception as e:
|
try:
|
||||||
log_error(e)
|
all_cards()
|
||||||
except KeyError:
|
except Exception as e:
|
||||||
pass
|
log_error(e)
|
||||||
try:
|
except KeyError:
|
||||||
if str(account_id) in json_entry["pc"]:
|
pass
|
||||||
try:
|
try:
|
||||||
bing_pc_search()
|
if str(account_id) in json_entry["pc"]:
|
||||||
except Exception as e:
|
try:
|
||||||
log_error(e)
|
bing_pc_search()
|
||||||
except KeyError:
|
except Exception as e:
|
||||||
pass
|
log_error(e)
|
||||||
try:
|
except KeyError:
|
||||||
if str(account_id) in json_entry["mobile"]:
|
pass
|
||||||
try:
|
try:
|
||||||
bing_mobile_search(cred)
|
if str(account_id) in json_entry["mobile"]:
|
||||||
except Exception as e:
|
try:
|
||||||
log_error(e)
|
bing_mobile_search(cred)
|
||||||
|
except Exception as e:
|
||||||
|
log_error(e)
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
log_points()
|
log_points()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
error(f"CustomStart {e}")
|
error(f"CustomStart {e}")
|
||||||
|
|
||||||
driver.close()
|
driver.close()
|
||||||
cred.next_account()
|
cred.next_account()
|
||||||
account_id += 1
|
account_id += 1
|
||||||
|
|
Loading…
Reference in New Issue