일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- Unity
- dbms
- 리눅스 마스터 1급
- Class
- Polymolphism
- systemd
- Inheritance
- Java
- Entity Set
- BFS
- X.org
- 자바
- Entity
- 셀레니움
- Binary Search
- Operator
- spring
- 백준
- preprocessing
- OOP
- 리눅스
- Reference Type
- literal
- selenium
- External Scheme
- python
- descriptive statistics
- Physical Scheme
- Mac
- X윈도우
- Today
- Total
목록셀레니움 (2)
Byeol Lo
다음 options을 세팅하자! from selenium import webdriver from selenium.webdriver.chrome.options import Options import chromedriver_autoinstaller chromedriver_autoinstaller.install("./") chrome_options = Options() chrome_options.add_argument('--headless') chrome_options.add_argument('--log-level=3') # 브라우저 로그 레벨을 낮춤 chrome_options.add_argument('--disable-loging') # 로그를 남기지 않음 driver = webdriver.Chrome(ch..
우선 pip로 셀레니움을 다운 받고, apt-get update 와 동시에 chromium-chromedriver 를 다운받아준다. # !pip install --upgrade pip !pip install selenium !apt-get update !apt install chromium-chromedriver 다 다운을 받았으면, chromedriver를 import 해주어야 하는데, 해당 chromedriver는 다른 폴더에 있기 때문에 사용이 편리하도록 하도록 환경변수를 세팅해준다. import sys sys.path.insert(0, '/usr/lib/chromium-browser/chromedriver') from selenium import webdriver 여기서 우분투 운영체제인 코랩에서..