Jimin Park commited on
Commit
f067acf
·
1 Parent(s): 11400bb

kermitting soon

Browse files
util/Meta_scrapper.py CHANGED
@@ -8,6 +8,7 @@ from webdriver_manager.chrome import ChromeDriverManager
8
  from selenium.webdriver.common.by import By
9
  from selenium.webdriver.support.ui import WebDriverWait
10
  from selenium.webdriver.support import expected_conditions as EC
 
11
 
12
  # Constants
13
  ROLES = ["top", "jungle", "mid", "adc", "support"]
@@ -66,7 +67,7 @@ def setup_driver():
66
  else:
67
  # Local environment setup
68
  print("Running locally.")
69
- chromedriver_path = ChromeDriverManager().install()
70
 
71
  # Create the Service object using the installed chromedriver
72
  service = Service(executable_path=chromedriver_path)
 
8
  from selenium.webdriver.common.by import By
9
  from selenium.webdriver.support.ui import WebDriverWait
10
  from selenium.webdriver.support import expected_conditions as EC
11
+ from webdriver_manager.core.os_manager import ChromeType
12
 
13
  # Constants
14
  ROLES = ["top", "jungle", "mid", "adc", "support"]
 
67
  else:
68
  # Local environment setup
69
  print("Running locally.")
70
+ chromedriver_path = ChromeDriverManager(chrome_type=ChromeType.CHROMIUM).install()
71
 
72
  # Create the Service object using the installed chromedriver
73
  service = Service(executable_path=chromedriver_path)
util/Player_scrapper.py CHANGED
@@ -8,6 +8,7 @@ from selenium.webdriver.common.by import By
8
  from selenium.webdriver.support.ui import WebDriverWait
9
  from selenium.webdriver.support import expected_conditions as EC
10
  import pandas as pd
 
11
  from helper import format_summoner_name
12
 
13
  # Constants
@@ -37,7 +38,7 @@ def setup_driver():
37
  else:
38
  # Local environment setup
39
  print("Running locally.")
40
- chromedriver_path = ChromeDriverManager().install()
41
 
42
  # Create the Service object using the installed chromedriver
43
  service = Service(executable_path=chromedriver_path)
 
8
  from selenium.webdriver.support.ui import WebDriverWait
9
  from selenium.webdriver.support import expected_conditions as EC
10
  import pandas as pd
11
+ from webdriver_manager.core.os_manager import ChromeType
12
  from helper import format_summoner_name
13
 
14
  # Constants
 
38
  else:
39
  # Local environment setup
40
  print("Running locally.")
41
+ chromedriver_path = ChromeDriverManager(chrome_type=ChromeType.CHROMIUM).install()
42
 
43
  # Create the Service object using the installed chromedriver
44
  service = Service(executable_path=chromedriver_path)
util/Recent_match_scrapper.py CHANGED
@@ -8,6 +8,7 @@ from selenium.webdriver.support import expected_conditions as EC
8
  import pandas as pd
9
  from urllib.parse import unquote
10
  from webdriver_manager.chrome import ChromeDriverManager
 
11
  from helper import convert_to_minutes, convert_percentage_to_decimal, convert_tier_to_number, convert_result_to_binary, format_summoner_name, convert_to_displayname
12
 
13
  def setup_driver():
@@ -32,7 +33,7 @@ def setup_driver():
32
  else:
33
  # Local environment setup
34
  print("Running locally.")
35
- chromedriver_path = ChromeDriverManager().install()
36
 
37
  # Create the Service object using the installed chromedriver
38
  service = Service(executable_path=chromedriver_path)
 
8
  import pandas as pd
9
  from urllib.parse import unquote
10
  from webdriver_manager.chrome import ChromeDriverManager
11
+ from webdriver_manager.core.os_manager import ChromeType
12
  from helper import convert_to_minutes, convert_percentage_to_decimal, convert_tier_to_number, convert_result_to_binary, format_summoner_name, convert_to_displayname
13
 
14
  def setup_driver():
 
33
  else:
34
  # Local environment setup
35
  print("Running locally.")
36
+ chromedriver_path = ChromeDriverManager(chrome_type=ChromeType.CHROMIUM).install()
37
 
38
  # Create the Service object using the installed chromedriver
39
  service = Service(executable_path=chromedriver_path)