Skip to content

Commit

Permalink
Remove unneeded URL requests, go for the prediction straight away (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
damyan authored Jan 29, 2024
1 parent 15f4031 commit c84287d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/auto_submit_tips.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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")
Expand Down

0 comments on commit c84287d

Please sign in to comment.