[파이썬]페이지 로딩될 때 까지 기다리게 하는 방법
# Script/Python2022. 10. 12. 13:19[파이썬]페이지 로딩될 때 까지 기다리게 하는 방법

Selenium이 페이지가 모두 로딩될 때 까지 기다리게 하는 방법 단순 시간 대기 from time import sleep URL = 'http://encykorea.aks.ac.kr/Contents/CategoryNavi?category=contenttype&keyword=%EC%9D%B8%EB%AC%BC&ridx=0&tot=18507' # 원하는 페이지 지정 driver = webdriver.Chrome('chromedriver.exe') # 원하는 브라우저 엔진 선택(파일 경로) driver.get(URL) # 해당 URL로 브라우저 창을 실행 sleep(3) 브라우저 엔진이 URL을 접속하고 단순히 3초를 대기한다. 이 방법은 모든 페이지마다 항상 3초를 대기하므로 비효율적이다. 암묵적 대기(I..

ntp(network time protocol) 서버 구축
# Operation System/Linux2022. 5. 20. 08:41ntp(network time protocol) 서버 구축

설치환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 설치 $ yum -y install ntp Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.kakao.com * extras: mirror.kakao.com * updates: mirror.navercorp.com Resolving Dependencies --> Running transaction check ---> Package ntp.x86_64 0:4.2.6p5-29.el7.centos.2 will be installed --> Processing Dependency: n..

[파워쉘]윈도우 시간동기화 실패시 텔레그램 푸시
# Script/Powershell2020. 3. 16. 10:24[파워쉘]윈도우 시간동기화 실패시 텔레그램 푸시

$hostname = hostname $events=Get-WinEvent -FilterHashtable @ -MaxEvents 1 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $token = "#####################" $chatId = "#####################" $message = $events.message Invoke-RestMethod -Uri "https://api.telegram.org/bot$token/sendMessage?text=$message&chat_id=$chatId"

image