"윈도우 셀레늄 설치"의 두 판 사이의 차이

잔글 (→‎예제: executable_path=r 추가, 없으면 WinError 267 발생)
 
(다른 사용자 한 명의 중간 판 13개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
;윈도우 셀레늄 설치
;윈도우 셀레늄 설치
* [[윈도우 파이썬3 설치]](Path 설정 필수)
 
==사전작업==
* [[윈도우 파이썬3 설치]](Path 설정 채크)
 
==설치==
<source lang='doscon'>
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
</source>
 
==크롬 드라이버 설치==
* https://sites.google.com/a/chromium.org/chromedriver/downloads 접속
* ChromeDriver 2.32 클릭
* chromedriver_win32.zip 클릭하여 다운로드
* 압축해제
* chromedriver.exe를 D:\로 이동
 
==예제==
<source lang='python'>
from selenium import webdriver
driver = webdriver.Chrome(executable_path=r'D:/chromedriver')
driver.get('http://www.google.com/xhtml');
</source>
 
==(Optional) 라이브러리 설치==
<source lang='dos'>
pip install lxml
pip install numpy
pip install mysqlclient
</source>


==같이 보기==
==같이 보기==
* [[셀레늄 프레임워크]]
* [[셀레늄 프레임워크]]
==참고==
* https://sites.google.com/a/chromium.org/chromedriver/getting-started


[[분류: 윈도우]]
[[분류: 윈도우]]

2019년 12월 17일 (화) 06:50 기준 최신판

윈도우 셀레늄 설치

1 사전작업[ | ]

2 설치[ | ]

doscon
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

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

4 예제[ | ]

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

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

bat
Copy
pip install lxml
pip install numpy
pip install mysqlclient

6 같이 보기[ | ]

7 참고[ | ]