반응형
< 자동 로그인 코드 >
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome('C:/chromedriver/chromedriver')
driver.implicitly_wait(3)
# daum.net 자동 로그인
driver.get('https://logins.daum.net/accounts/loginform.do?url=https%3A%2F%2Fmail.daum.net%2F')
driver.find_element_by_name('id').send_keys('DaumID') # 다음 아이디 입력
driver.find_element_by_name('pw').send_keys('DaumPW') # 다음 패스워드 입력
driver.find_element_by_xpath('//*[@id="loginBtn"]').click()
< 실행 화면 >
반응형
'Python_Intermediate > Automation' 카테고리의 다른 글
Gmail Python Send(Add File) (0) | 2019.04.06 |
---|---|
Python - webdriver headless Mode(창 숨김 모드) (0) | 2019.03.06 |
Python - NaverMail 제목 리스트 가져오기 (0) | 2019.03.03 |
Python - DaumMail 제목 리스트 가져오기 (0) | 2019.03.03 |
Python - GMAIL Auto Login(지메일 자동 로그인) (0) | 2019.02.24 |