Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phitrann committed Mar 8, 2024
1 parent c7e62c3 commit ed09341
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
for option in options:
chrome_options.add_argument(option)

# browser = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options) #webdriver.Chrome("chromedriver.exe")
browser = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options) #webdriver.Chrome("chromedriver.exe")

chrome_service = Service(ChromeDriverManager(chrome_type=ChromeType.CHROMIUM).install())
browser = webdriver.Chrome(service=chrome_service, options=chrome_options)
# chrome_service = Service(ChromeDriverManager(chrome_type=ChromeType.CHROMIUM).install())
# browser = webdriver.Chrome(service=chrome_service, options=chrome_options)

browser.maximize_window()
# Set thời gian chờ mặc định là 10 giây
Expand Down

0 comments on commit ed09341

Please sign in to comment.