add facilities from result of crawling

This commit is contained in:
Dohyun Lim committed 2026-01-12 16:50:16 +09:00
1 parent b84c07c325
commit 3f75b6d61d
16 files changed
+286 -19

No files matched your search

BIN
View File
Binary file not shown.
+5 -2
View File
@@ -193,9 +193,12 @@ async def crawling(request_body: CrawlingRequest):
logger.info(f"[crawling] Step 3-3: GPT API 호출 완료 - 응답 {len(raw_response)}자 ({step3_3_elapsed:.1f}ms)")
print(f"[crawling] Step 3-3: GPT API 호출 완료 - 응답 {len(raw_response)}자 ({step3_3_elapsed:.1f}ms)")
# Step 3-4: 응답 파싱
# Step 3-4: 응답 파싱 (크롤링에서 가져온 facility_info 전달)
step3_4_start = time.perf_counter()
parsed = await chatgpt_service.parse_marketing_analysis(raw_response)
print(f"[crawling] Step 3-4: 응답 파싱 시작 - facility_info: {scraper.facility_info}")
parsed = await chatgpt_service.parse_marketing_analysis(
raw_response, facility_info=scraper.facility_info
)
marketing_analysis = MarketingAnalysis(**parsed)
step3_4_elapsed = (time.perf_counter() - step3_4_start) * 1000
print(f"[crawling] Step 3-4: 응답 파싱 완료 ({step3_4_elapsed:.1f}ms)")