애니라이프 추가 및 애니24 수정
This commit is contained in:
@@ -381,6 +381,7 @@ class LogicAniLife(LogicModuleBase):
|
||||
from selenium.webdriver.common.by import By
|
||||
from selenium import webdriver
|
||||
from selenium_stealth import stealth
|
||||
from webdriver_manager.chrome import ChromeDriverManager
|
||||
import time
|
||||
|
||||
options = webdriver.ChromeOptions()
|
||||
@@ -392,7 +393,10 @@ class LogicAniLife(LogicModuleBase):
|
||||
options.add_experimental_option("useAutomationExtension", False)
|
||||
# 크롬드라이버 경로
|
||||
driver_path = "./bin/Darwin/chromedriver"
|
||||
driver = webdriver.Chrome(executable_path=driver_path, chrome_options=options)
|
||||
# driver = webdriver.Chrome(executable_path=driver_path, chrome_options=options)
|
||||
driver = webdriver.Chrome(
|
||||
ChromeDriverManager().install(), chrome_options=options
|
||||
)
|
||||
stealth(
|
||||
driver,
|
||||
languages=["en-US", "en"],
|
||||
|
||||
Reference in New Issue
Block a user