This is a code that used Selenium to crawl the web, but .get() does not seem to work after updating Chrome and Chrome Driver.
Chrome version is "133.0.6943.99" and the Chrome Driver version is "133.0.6943.98".
# No.1
# This code works.
driver = webdriver.Chrome()
url = "https://www.google.com"
driver.get(url)
# No.2
# This code runs, but does not connect to the specified URL.
options = Options()
options.add_argument(r"USER_DATA_PATH") # "USER_DATA_PATH" is the path where the actual Chrome profile account is saved.
driver = webdriver.Chrome(options=options)
url = "https://www.google.com"
driver.get(url)
There are some operations that can only be done using a Chrome profile account. Is there anyone who is experiencing the same problem or knows a solution?
For tasks that do not require a Chrome profile account, the URL was accessed normally when the first code was used, and crawling was completed without any problems.
However, when the second code is executed, the Chrome instance and profile are loaded normally, but it does not go to the specified URL. No error message or error appeared when executing the code. Code execution terminated normally.