selenium1 파이썬 동적 크롤링 우선 자신이 사용하는 웹 브라우저에 맞는 드라이버를 다운받기. (필자는 크롬 브라우저를 사용하기 때문에 크롬 드라이버를 설치함) 이후 selenium 라이브러리를 설치한다. pip install selenium selenium 라이브러리를 설치한 이후 파이썬에 import 하기 from selenium import webdriver from selenium.webdriver.common.by import By from bs4 import BeautifulSoup from urllib.request import urlopen selenium 으로 DOM에 접근하는 방법 단일 객체 반환(bs4 - BeautifulSoup 의 find()와 같은 형태) find_element 리스트 객체 반환(bs4 의 fi.. 2023. 5. 11. 이전 1 다음