모바일 경로의 place_id 파싱 추가
parent
bdee852bed
commit
825ab1fd89
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue