Jimin Park commited on
Commit
3224c57
·
1 Parent(s): bb2fe7d

added model

Browse files
util/Recent_match_scrapper.py CHANGED
@@ -233,7 +233,7 @@ def get_matches_stats(region, username, max_retries=2):
233
  url = f"https://www.op.gg/summoners/{region}/{username}?queue_type=SOLORANKED"
234
  print(f"Accessing URL: {url}")
235
  driver.get(url)
236
-
237
  matches_container = WebDriverWait(driver, 20).until(
238
  EC.presence_of_element_located((By.CSS_SELECTOR, "div.css-1jxewmm.ek41ybw0"))
239
  )
 
233
  url = f"https://www.op.gg/summoners/{region}/{username}?queue_type=SOLORANKED"
234
  print(f"Accessing URL: {url}")
235
  driver.get(url)
236
+
237
  matches_container = WebDriverWait(driver, 20).until(
238
  EC.presence_of_element_located((By.CSS_SELECTOR, "div.css-1jxewmm.ek41ybw0"))
239
  )
util/app_training_df_getter.py CHANGED
@@ -470,7 +470,7 @@ def create_app_user_training_df(url):
470
 
471
  # Validate recent_stats
472
  if recent_stats is None or recent_stats.empty:
473
- raise ValueError("No recent matches found. \n type(recent_stats): ", type(recent_stats) , "\n recent_stats: \n", recent_stats)
474
 
475
  print("Recent matches columns:", recent_stats.columns.tolist())
476
 
 
470
 
471
  # Validate recent_stats
472
  if recent_stats is None or recent_stats.empty:
473
+ raise ValueError("recent_stats is empty. type(recent_stats): ", type(recent_stats) , " recent_stats: \n", recent_stats)
474
 
475
  print("Recent matches columns:", recent_stats.columns.tolist())
476