DB_JOB/작업파일/완료/광역_사이트맵/충청남도/9.서천군/_edge.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

16 lines
654 B
Python

import openpyxl, sys
sys.stdout.reconfigure(encoding='utf-8')
wb=openpyxl.load_workbook(r'충청남도_서천군.xlsx'); ws=wb.active
def full(r):
d={}
for c in range(2,19):
v=ws.cell(r,c).value
if v is not None: d[openpyxl.utils.get_column_letter(c)]=str(v)[:20]
cell=ws.cell(r,11); d['Klink']=cell.hyperlink.target[:50] if cell.hyperlink else ''
return d
print('R93',full(93)); print('R94',full(94)); print('R95',full(95))
print('R232',full(232)); print('R233',full(233)); print('R234',full(234))
# site rows N convention
for r in [3,13,24,62]:
print(f'site R{r}', {k:full(r).get(k) for k in ['F','L','M','N','O']})