diff --git a/app/integrations/firecrawl.py b/app/integrations/firecrawl.py index 4aeaa9e..f3313de 100644 --- a/app/integrations/firecrawl.py +++ b/app/integrations/firecrawl.py @@ -74,7 +74,7 @@ class FirecrawlClient: headers=self._headers(), json_body={ "url": url, - "formats": ["json", "links", "html"], + "formats": ["json", "links", "rawHtml"], "jsonOptions": { "prompt": "Extract: clinic name (Korean), clinic name (English), address, phone with dash format, business hours, slogan, services offered, doctors with name/title/specialty, brand identity (primary/accent/background/text colors in hex, heading/body fonts, logo URL from the actual header/main src, og:image from content, favicon URL)", "schema": { @@ -147,7 +147,7 @@ class FirecrawlClient: # "socialMedia": info.get("socialMedia", {}), "branding": info.get("branding", {}), "siteLinks": data.get("links", []), - "html": data.get("html", ""), # raw HTML — collect 단계에서 tracking 추출 후 raw_data 에는 저장 안 함. + "html": data.get("rawHtml", "") or data.get("html", ""), # rawHtml = 가공 전 원본 —