728x90
Python으로 웹사이트 매크로 제작 위해서
selnium 사용해보자.
※ selenum 설치
pip install selenium
※ 소스
from selenium import webdriver
import time
driver = webdriver.Chrome()
time.sleep(3)
driver.get_screenshot_as_file('capture_naver.png') # 화면캡처
driver.quit() # driver 종료
※ 실행화면
728x90
반응형
'Software > Python' 카테고리의 다른 글
Python 시작하기 - BeautifulSoup이용 웹크롤링 (0) | 2024.07.02 |
---|---|
Python 시작하기 - selenium 활용 (0) | 2024.07.02 |
Python 시작하기 - JSON 변환 (0) | 2024.06.23 |
Python 시작하기 - CSV 저장 (0) | 2024.06.23 |
Python 시작하기 - Mysql 조회 (0) | 2024.06.23 |