1 개요
- 윈도우 셀레늄 설치
- 윈도우 파이썬3 설치(Path 설정 필수)
Console
Copy
C:\Users\jmnote>pip install selenium
Collecting selenium
Downloading selenium-3.6.0-py2.py3-none-any.whl (924kB)
... (생략)
Installing collected packages: selenium
Successfully installed selenium-3.6.0
2 크롬 드라이버 설치
- https://sites.google.com/a/chromium.org/chromedriver/downloads 접속
- ChromeDriver 2.32 클릭
- chromedriver_win32.zip 클릭하여 다운로드
- 압축해제
- chromedriver.exe 실행
doscon
Copy
Starting ChromeDriver 2.32.498550 (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a) on port 9515
Only local connections are allowed.
3 (Optional) 라이브러리 설치
bat
Copy
pip install lxml
pip install numpy
pip install mysqlclient
4 예제
Python
Copy
from selenium import webdriver
driver = webdriver.Chrome('D:/path/to/chromedriver')
driver.get('http://www.google.com/xhtml');
5 같이 보기
편집자 Jmnote WikiPo
로그인하시면 댓글을 쓸 수 있습니다.