From 825ab1fd89df1673dc36b95ee7fde1aae28de0d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=B1=EA=B2=BD?= Date: Thu, 4 Jun 2026 13:30:51 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=EC=9D=98=20place=5Fid=20=ED=8C=8C=EC=8B=B1=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/utils/nvMapScraper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/utils/nvMapScraper.py b/app/utils/nvMapScraper.py index 409fcc2..b5e3072 100644 --- a/app/utils/nvMapScraper.py +++ b/app/utils/nvMapScraper.py @@ -93,6 +93,9 @@ query getAccommodation($id: String!, $deviceType: String) { raise URLNotFoundException("This URL does not contain a place ID") match = re.search(place_pattern, self.url) + if not match: + # place.naver.com/{type}/{id} 형식 (예: m.place.naver.com/restaurant/11667161) + match = re.search(r"place\.naver\.com/[a-zA-Z]+/(\d+)", self.url) if not match: raise URLNotFoundException("Failed to parse place ID from URL") return match[1]