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를 D:\workspace로 이동
3 예제
Python
Copy
from selenium import webdriver
driver = webdriver.Chrome('D:/workspace/chromedriver')
driver.get('http://www.google.com/xhtml');
4 (Optional) 라이브러리 설치
bat
Copy
pip install lxml
pip install numpy
pip install mysqlclient
5 같이 보기
6 참고
편집자 Jmnote WikiPo
로그인하시면 댓글을 쓸 수 있습니다.