모바일 경로의 place_id 파싱 추가

feature-BizInput
김성경 2026-06-04 13:30:51 +09:00
parent bdee852bed
commit 825ab1fd89
1 changed files with 3 additions and 0 deletions

View File

@ -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]