대기시간 수정, table inline style 추가

This commit is contained in:
2025-06-27 14:48:57 +09:00
parent ac0b625478
commit cc2a90545a
2 changed files with 4 additions and 2 deletions

View File

@ -37,7 +37,9 @@ def get_precipitation_summary():
try:
data = response.json()
total_rainfall = 0.0
lines = [f'<h3 style="font-size:2em; text-align:center;">[시간대별 강수량]</h3><table><tr><th>시간</th><th>강수량</th></tr>']
lines = [f'<h3 style="font-size:2em; text-align:center;">[시간대별 강수량]</h3>']
lines.append(f'<table style="min-width:400px; border: 1px #333 solid; text-align:center; ">')
lines.append(f'<tr><th>시간</th><th>강수량</th></tr>')
for item in data['response']['body']['items']['item']:
if item['category'] == 'PCP' and item['fcstDate'] == TODAY:

View File

@ -30,7 +30,7 @@ try:
driver.get('https://www.weather.go.kr/w/weather/forecast/short-term.do#dong/4148026200/37.73208578534846/126.79463099866948')
wait = WebDriverWait(driver, 20)
wait = WebDriverWait(driver, 25)
# 첫 번째 탭 클릭 (안전하게 클릭 대기)
tab_button = wait.until(EC.element_to_be_clickable(