add marketing intelligence db
This commit is contained in:
1 parent
e19c8c9d62
commit
54e66e4682
6 files changed
+256
-11
No files matched your search
@@ -30,7 +30,7 @@ class NvMapScraper:
|
||||
|
||||
GRAPHQL_URL: str = "https://pcmap-api.place.naver.com/graphql"
|
||||
REQUEST_TIMEOUT = 120 # 초
|
||||
|
||||
data_source_identifier = "nv"
|
||||
OVERVIEW_QUERY: str = """
|
||||
query getAccommodation($id: String!, $deviceType: String) {
|
||||
business: placeDetail(input: {id: $id, isNx: true, deviceType: $deviceType}) {
|
||||
@@ -99,6 +99,8 @@ query getAccommodation($id: String!, $deviceType: String) {
|
||||
data = await self._call_get_accommodation(place_id)
|
||||
self.rawdata = data
|
||||
fac_data = await self._get_facility_string(place_id)
|
||||
# Naver 기준임, 구글 등 다른 데이터 소스의 경우 고유 Identifier 사용할 것.
|
||||
self.place_id = self.data_source_identifier + place_id
|
||||
self.rawdata["facilities"] = fac_data
|
||||
self.image_link_list = [
|
||||
nv_image["origin"]
|
||||
|
||||
Reference in new issue
Block a user