04-30 09:16
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- OOP
- dbms
- 리눅스 마스터 1급
- Reference Type
- descriptive statistics
- Physical Scheme
- Entity
- selenium
- External Scheme
- X.org
- Polymolphism
- 리눅스
- preprocessing
- Inheritance
- Mac
- Java
- python
- Unity
- Entity Set
- literal
- spring
- X윈도우
- 백준
- 셀레니움
- Binary Search
- Class
- systemd
- BFS
- Operator
- 자바
Archives
- Today
- Total
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(chrome_options=chrome_options)
url = "https://google.com"
driver.get(url)
print(driver.page_source)
'Programming Language > Python' 카테고리의 다른 글
Numpy 라이브러리 사용 (0) | 2022.06.15 |
---|---|
셀레니움에서 로딩 기다리기 (0) | 2022.06.13 |
셀레니움 구글 드라이버 간편 설치 및 실행 (0) | 2022.06.04 |
구글 코랩에서 셀레니움 이용하기 (4) | 2022.06.04 |
Python - 백준 입출력 (0) | 2022.03.14 |
Comments