From cc2a90545a4265d4534f5802585324851b2c1d3b Mon Sep 17 00:00:00 2001 From: KWON Date: Fri, 27 Jun 2025 14:48:57 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8C=80=EA=B8=B0=EC=8B=9C=EA=B0=84=20?= =?UTF-8?q?=EC=88=98=EC=A0=95,=20table=20inline=20style=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/weather.py | 4 +++- data/weather_capture.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/data/weather.py b/data/weather.py index d0d01d2..fe2a11f 100644 --- a/data/weather.py +++ b/data/weather.py @@ -37,7 +37,9 @@ def get_precipitation_summary(): try: data = response.json() total_rainfall = 0.0 - lines = [f'

[시간대별 강수량]

'] + lines = [f'

[시간대별 강수량]

'] + lines.append(f'
시간강수량
') + lines.append(f'') for item in data['response']['body']['items']['item']: if item['category'] == 'PCP' and item['fcstDate'] == TODAY: diff --git a/data/weather_capture.py b/data/weather_capture.py index bd5b409..c474e37 100644 --- a/data/weather_capture.py +++ b/data/weather_capture.py @@ -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(
시간강수량