beautifulsoup ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ง์ผ๋ก๋ ๋ง์ ์ฌ์ดํธ์ ์ ๋ณด๋ฅผ ๊ฐ์ ธ์ฌ ์ ์์ง๋ง, ์๋ฐ์คํฌ๋ฆฝํธ๋ก ๋์ ์ผ๋ก ์์ฑ๋ ์ ๋ณด๋ ๊ฐ์ ธ์ฌ ์ ์๋ ํ๊ณ๊ฐ ์๋ค.
pip install selenium
# selenium ๊ธฐ๋ณธ์ค์ import 4์ค from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.chrome.options #ํฌ๋กฌ ๋๋ผ์ด๋ฒ ์๋ ์ ๋ฐ์ดํธ from webdriver_manager.chrome import ChromeDriverManager # ๋ธ๋ผ์ฐ์ ๊บผ์ง ๋ฐฉ์ง chrome_options = Options() chrome_options.add_experimental_option("detach",True) # ํฌ๋กฌ ๋๋ผ์ด๋ฒ ์ค์น service = Service(executable_path=ChromeDriverManager().install()) driver = webdriver.Chrome(service=service, options=chrome_options) # ์น๋ธ๋ผ์ฐ์ ํด๋น ์ฃผ์ ์ด๋ driver.get("https://www.naver.com")