BackEnd/Automation Program with Python

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

[파이썬 고급 스크랩핑] requests 통신(로그인 처리) 루리웹

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..

달려라 국나뇽
'BackEnd/Automation Program with Python' 카테고리의 글 목록 (2 Page)