[파이썬]unknown error: DevToolsActivePort file doesn't exist
# Script/Python2021. 4. 30. 16:47[파이썬]unknown error: DevToolsActivePort file doesn't exist

파이썬 실행시 아래와 같이 오류발생할 경우 unknown error: DevToolsActivePort file doesn't exist 아래내용 추가 from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_argument('--headless') chrome_options.add_argument('--no-sandbox') chrome_options.add_argument("--single-process") chrome_options.add_argument("--disable-dev-shm-usage") driver = webdriver.Chrome("./chromedriver",chrome_..

[파이썬]셀레니움을 이용해 geoip 업데이트 자동화
# Script/Python2021. 4. 30. 08:11[파이썬]셀레니움을 이용해 geoip 업데이트 자동화

geoip을 업데이트 하기위해서는 로그인을 해서 최신버전을 그때 그때 다운로드를 받아야합니다. 사실 3개월정도에 한번 할까 말까라 좀 귀찮아서 자동화해볼려고합니다. 스타트~ 설치환경 centos7 1. python3 install [daraksharavim.tistory.com]$ yum -y install python3 [daraksharavim.tistory.com]$ yum install python3 [daraksharavim.tistory.com]$ pip3 install -U pip [daraksharavim.tistory.com]$ pip install beautifulsoup4 [daraksharavim.tistory.com]$ pip install selenium 2. chrome ins..

[파이썬]beautifulsoup를 이용한 사이트 정보  추출
# Script/Python2021. 4. 29. 11:12[파이썬]beautifulsoup를 이용한 사이트 정보 추출

1. beautifulsoup 설치 $ pip install beautifulsoup4 2. beautifulsoup 사용법 import requests from bs4 import BeautifulSoup url = 'https://darksharavim.tistory.com/' response = requests.get(url) if response.status_code == 200: html = response.text soup = BeautifulSoup(html, 'html.parser') print(soup) else: print(response.status_code) 상태값이 200인 경우만 출력 C:\Users\kajin7-ryzen3\PycharmProjects\darksharavim\v..

[파이썬]셀레니움 설치
카테고리 없음2021. 4. 29. 11:07[파이썬]셀레니움 설치

1. browser driver 및 browser버전 확인 2. chrome 드라이버 설치 chromedriver.chromium.org/downloads ChromeDriver - WebDriver for Chrome - Downloads Current Releases If you are using Chrome version 91, please download ChromeDriver 91.0.4472.19 If you are using Chrome version 90, please download ChromeDriver 90.0.4430.24 If you are using Chrome version 89, please download ChromeDriver 89.0.4389.23 If yo chrome..

[장난감]뽀로로 목욕놀이 워터파크
# Life/Toy2021. 4. 27. 22:22[장난감]뽀로로 목욕놀이 워터파크

둘째가 물을 아직 무서워서해서 어린이날 선물로 구매한 목욕놀이 장난감근데 첫째가 더 좋아라하네요 ㅋ

image