픽팍 무료출석 귀찮아서
GPT에 대충 만들어 달라고 하고 수정해서 완성하긴 했습니다.
프로그램 실행 -> 크롬 실행 -> 픽팍무료출석 사이트 접속 -> Check-in 버튼 클릭
만들긴 했는데 신경 써야할게 크롬버전, 크롬드라이버버전이 같아야 되고 리캡차가 한번씩 떠서..
관심 있으신분은 코드아래에다 써놀테니 ==파이썬===으로 만들어보세요
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from webdriver_manager.chrome import ChromeDriverManager
import time
options = webdriver.ChromeOptions()
options.add_argument("--user-data-dir=C:/Users/사용자명/AppData/Local/Google/Chrome/User Data")
options.add_argument("--profile-directory=Default")
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
driver.get("https://mypikpak.com/ko/check-in?from_source=pp_browser_extension")
print("버튼 클릭중")
try:
check_in_button = WebDriverWait(driver, 10).until(
EC.element_to_be_clickable((By.XPATH, "//button[contains(@class, 'el-button--primary')]"))
)
check_in_button.click()
print("버튼 클릭 완료")
except Exception as e:
print(f"Error: {e}")
input("프로그램이 끝났습니다. 브라우저를 닫으려면 Enter를 누르세요.")
프로그램 실행 -> 크롬 실행 -> 픽팍무료출석 사이트 접속 -> Check-in 버튼 클릭
만들긴 했는데 신경 써야할게 크롬버전, 크롬드라이버버전이 같아야 되고 리캡차가 한번씩 떠서..
관심 있으신분은 코드아래에다 써놀테니 ==파이썬===으로 만들어보세요
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from webdriver_manager.chrome import ChromeDriverManager
import time
options = webdriver.ChromeOptions()
options.add_argument("--user-data-dir=C:/Users/사용자명/AppData/Local/Google/Chrome/User Data")
options.add_argument("--profile-directory=Default")
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
driver.get("https://mypikpak.com/ko/check-in?from_source=pp_browser_extension")
print("버튼 클릭중")
try:
check_in_button = WebDriverWait(driver, 10).until(
EC.element_to_be_clickable((By.XPATH, "//button[contains(@class, 'el-button--primary')]"))
)
check_in_button.click()
print("버튼 클릭 완료")
except Exception as e:
print(f"Error: {e}")
input("프로그램이 끝났습니다. 브라우저를 닫으려면 Enter를 누르세요.")


