NamuTree0345
대표칭호 없음
# CONFIGURATION email = '이메일' password = '비밀번호' from selenium import webdriver import time path = "chromedriver.exe" driver = webdriver.Chrome(path) # connect to attendance driver.get('https://www.koreaminecraft.net/attendance') # get login show button loginShowButton = driver.find_element_by_class_name('toggle-login') loginShowButton.click() # sleep time.sleep(3) # ad close button fb = driver.find_element_by_class_name('fancybox-close') fb.click() # login driver.find_element_by_id('email').send_keys(email) driver.find_element_by_name('password').send_keys(password) driver.find_element_by_xpath('//button[@tabindex=4]').click() # sleep time.sleep(3) # ad close driver.find_element_by_class_name('fancybox-close').click() # attd driver.find_element_by_xpath('//*[@class="eq button button-primary waves-effect"]').click()
이 파이선 스크립트는 selenium이 설치되어있어야 작동합니다.
또한, 스크립트가 있는 위치에 ChromeDriver도 설치해야됩니다.
캡차 있으면 막힙니다
하이라이트|highright
2021.03.29미쳤습니까 휴-먼