윈도우 셀레늄 설치

WikiPo (토론 | 기여)님의 2019년 12월 17일 (화) 06:50 판 (→‎예제: executable_path=r 추가, 없으면 WinError 267 발생)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
윈도우 셀레늄 설치

1 사전작업[ | ]

2 설치[ | ]

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

3 크롬 드라이버 설치[ | ]

4 예제[ | ]

from selenium import webdriver
driver = webdriver.Chrome(executable_path=r'D:/chromedriver')
driver.get('http://www.google.com/xhtml');

5 (Optional) 라이브러리 설치[ | ]

pip install lxml
pip install numpy
pip install mysqlclient

6 같이 보기[ | ]

7 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}