From c84287de015e00379f5ddc9bbea4be3532767ec9 Mon Sep 17 00:00:00 2001 From: Damyan Yordanov Date: Tue, 30 Jan 2024 00:10:28 +0100 Subject: [PATCH] Remove unneeded URL requests, go for the prediction straight away (#15) --- src/auto_submit_tips.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/auto_submit_tips.py b/src/auto_submit_tips.py index c05d97b..40c762f 100755 --- a/src/auto_submit_tips.py +++ b/src/auto_submit_tips.py @@ -141,8 +141,6 @@ def make_tips_2_1(driver): ext_url=f"{BASE_URL}/{COMMUNITY_URL}/{ADD_TIPS_URL}?tipperId={TIPPER_ID_2_1_BOT}" for i in range(NUMBER_MATCHDAYS): match_day = i+1 - driver.get(f"{ext_url}&tippsaisonId={TIPP_SAISON_ID}") - driver.get(f"{ext_url}") driver.get(f"{ext_url}&tippsaisonId={TIPP_SAISON_ID}&spieltagIndex="+str(match_day)) for cell in driver.find_elements(by=By.XPATH, @@ -165,8 +163,6 @@ def make_random_tips(driver): ext_url=f"{BASE_URL}/{COMMUNITY_URL}/{ADD_TIPS_URL}?tipperId={TIPPER_ID_7_6_BOT}" for i in range(NUMBER_MATCHDAYS): match_day = i+1 - driver.get(f"{ext_url}&tippsaisonId={TIPP_SAISON_ID}") - driver.get(f"{ext_url}") driver.get(f"{ext_url}&tippsaisonId={TIPP_SAISON_ID}&spieltagIndex="+str(match_day)) table = driver.find_element(by=By.ID, value="tippsnachtragenSpiele")