- Move backend/frontend/messenger/ old paths to _archive/ - Reorganize scripts into scripts/deploy, check, push, setup, misc - Move docs (pptx, docx) to docs/ - Add .claude agents and skills for fullstack/folder-cleanup harness - workspace/ projects remain intact Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
39 lines
1.4 KiB
Python
39 lines
1.4 KiB
Python
"""나머지 홈페이지 스크린샷"""
|
|
import sys
|
|
sys.stdout.reconfigure(encoding='utf-8', errors='replace')
|
|
from pathlib import Path
|
|
from playwright.sync_api import sync_playwright
|
|
|
|
OUT = Path(r"C:\GUARDiA\workspace\zioinfo-web\frontend\public\screenshots")
|
|
HOME = "https://zioinfo.co.kr"
|
|
|
|
def snap(page, name, full=False):
|
|
p = str(OUT / f"{name}.png")
|
|
page.screenshot(path=p, full_page=full)
|
|
print(f" OK {name} ({Path(p).stat().st_size//1024}KB)")
|
|
|
|
with sync_playwright() as pw:
|
|
br = pw.chromium.launch(headless=True,
|
|
args=["--ignore-certificate-errors","--no-sandbox"])
|
|
ctx = br.new_context(viewport={"width":1440,"height":900}, ignore_https_errors=True)
|
|
pg = ctx.new_page()
|
|
pg.set_default_timeout(20000)
|
|
|
|
pages = [
|
|
(HOME+"/solution/guardia", "home_07_guardia", False),
|
|
(HOME+"/business", "home_08_business", False),
|
|
(HOME+"/news/newsroom", "home_09_news", False),
|
|
(HOME+"/recruit/jobs", "home_10_recruit", False),
|
|
(HOME+"/contact", "home_11_contact", False),
|
|
]
|
|
for url, name, full in pages:
|
|
try:
|
|
pg.goto(url, wait_until="domcontentloaded", timeout=15000)
|
|
pg.wait_for_timeout(1500)
|
|
snap(pg, name, full)
|
|
except Exception as e:
|
|
print(f" skip {name}: {str(e)[:60]}")
|
|
br.close()
|
|
|
|
print("done")
|