BackEnd/Automation Program with Python
import sys import io from selenium import webdriver from selenium.webdriver.chrome.options import Options import time from selenium.webdriver.common.by import By chrome_options = Options() driver = webdriver.Chrome('webdriver/chrome') #CLI 사용x # driver = webdriver.Chrome(chrome_options=chrome_options,executable_path='webdriver/chrome') driver.implicitly_wait(3) # 암묵적 5초 대기 driver.get('https://ww..
BackEnd/Automation Program with Python
import sys import io from bs4 import BeautifulSoup import requests sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8') sys.stddrr = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8') # 로그인 유저정보 LOGIN_info = { 'user_id' : 'test_id_1234', 'user_pw' : 'test_pw_1234!' } # Session 생성 with 구문 안에서 유지 with requests.Session() as s: login_req = s.post('https://user.ruliweb.com/me..