DB_JOB/작업파일/공공기관3/완료/4.한국인터넷진흥원/_probe3.py
2026-06-26 09:47:44 +09:00

9 lines
331 B
Python

# coding: utf-8
import requests, re
H={'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36'}
u='https://www.kisa.or.kr/20207'
html=requests.get(u,headers=H,timeout=20).content.decode('utf-8','replace')
i=html.find('sub_tab_menu')
print('--- context around first sub_tab_menu ---')
print(html[i-1500:i+1500])