DB_JOB/작업파일/완료/광역_사이트맵/전북특별자치도/3.김제시/_inspect.py
hehihoho3 df16c98366 백업: DB수집 전체 스냅샷 (공공기관2 정리 전)
공공기관2 작업 중. _temp 몽타주(재생성가능)는 제외.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 18:15:40 +09:00

18 lines
620 B
Python

# -*- coding: utf-8 -*-
import openpyxl, sys
sys.stdout.reconfigure(encoding='utf-8')
wb = openpyxl.load_workbook('전북특별자치도_김제시.xlsx')
ws = wb.active
print('dims', ws.max_row, ws.max_column)
# header
print('HEADER:', [ws.cell(1, c).value for c in range(1, ws.max_column + 1)])
print('---- rows 14..30 ----')
for r in range(14, min(31, ws.max_row + 1)):
vals = [ws.cell(r, c).value for c in range(1, ws.max_column + 1)]
# find hyperlink in K (col 11)
link = None
cellK = ws.cell(r, 11)
if cellK.hyperlink:
link = cellK.hyperlink.target
print(r, vals, '| K-link:', link)