From 4aacda4aadc82ededafd97c22be69b9b66b7cd39 Mon Sep 17 00:00:00 2001 From: scrapebadger-bot Date: Tue, 1 Dec 2026 23:30:28 +0000 Subject: [PATCH] chore: regenerate SDK from OpenAPI spec --- src/scrapebadger/naver/client.py | 590 ++++++++++++++++++++++++++++++- 1 file changed, 582 insertions(+), 8 deletions(-) diff --git a/src/scrapebadger/naver/client.py b/src/scrapebadger/naver/client.py index 8625ee1..0b75093 100644 --- a/src/scrapebadger/naver/client.py +++ b/src/scrapebadger/naver/client.py @@ -148,20 +148,68 @@ async def naver_blog_search(self, *, query: str, page: int = 1) -> dict[str, Any params = {k: v for k, v in {"query": query, "page": page}.items() if v is not None} return await self._client.get("/v1/naver/blog", params=params) - async def naver_place_local_search(self, *, query: str) -> dict[str, Any]: - """Naver Place/Local search. + async def cafe_search(self, *, query: str, page: int = 1) -> dict[str, Any]: + """Cafe search. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"query": query, "page": page}.items() if v is not None} + return await self._client.get("/v1/naver/cafe", params=params) + + async def clip_search(self, *, query: str, page: int = 1) -> dict[str, Any]: + """Clip search. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"query": query, "page": page}.items() if v is not None} + return await self._client.get("/v1/naver/clip", params=params) + + async def image_search(self, *, query: str, page: int = 1) -> dict[str, Any]: + """Image search. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"query": query, "page": page}.items() if v is not None} + return await self._client.get("/v1/naver/image", params=params) + + async def knowledge_in_search(self, *, query: str) -> dict[str, Any]: + """Knowledge iN search. Generated from the OpenAPI spec; returns the raw response dict. """ params = {k: v for k, v in {"query": query}.items() if v is not None} + return await self._client.get("/v1/naver/kin", params=params) + + async def naver_place_local_search( + self, + *, + query: str, + start: int = 1, + display: int = 10, + x: str | None = None, + y: str | None = None, + ) -> dict[str, Any]: + """Naver Place/Local search. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = { + k: v + for k, v in {"query": query, "start": start, "display": display, "x": x, "y": y}.items() + if v is not None + } return await self._client.get("/v1/naver/local", params=params) - async def naver_news_search(self, *, query: str, page: int = 1) -> dict[str, Any]: + async def naver_news_search( + self, *, query: str, page: int = 1, sort: str = "relevance" + ) -> dict[str, Any]: """Naver news search. Generated from the OpenAPI spec; returns the raw response dict. """ - params = {k: v for k, v in {"query": query, "page": page}.items() if v is not None} + params = { + k: v for k, v in {"query": query, "page": page, "sort": sort}.items() if v is not None + } return await self._client.get("/v1/naver/news", params=params) async def naver_place_detail(self, place_id: str) -> dict[str, Any]: @@ -171,21 +219,196 @@ async def naver_place_detail(self, place_id: str) -> dict[str, Any]: """ return await self._client.get(f"/v1/naver/place/{place_id}") - async def naver_place_visitor_reviews(self, place_id: str) -> dict[str, Any]: + async def get_place_photos( + self, place_id: str, *, media_source: str = "placeReview", cursor: str | None = None + ) -> dict[str, Any]: + """Get place photos. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = { + k: v + for k, v in {"media_source": media_source, "cursor": cursor}.items() + if v is not None + } + return await self._client.get(f"/v1/naver/place/{place_id}/photos", params=params) + + async def naver_place_visitor_reviews( + self, place_id: str, *, cursor: str | None = None, size: int = 20 + ) -> dict[str, Any]: """Naver place visitor reviews. Generated from the OpenAPI spec; returns the raw response dict. """ - return await self._client.get(f"/v1/naver/place/{place_id}/reviews") + params = {k: v for k, v in {"cursor": cursor, "size": size}.items() if v is not None} + return await self._client.get(f"/v1/naver/place/{place_id}/reviews", params=params) + + async def get_group_review_summary( + self, group_product_no: str, *, leaf_category_id: str + ) -> dict[str, Any]: + """Get group review summary. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"leaf_category_id": leaf_category_id}.items() if v is not None} + return await self._client.get( + f"/v1/naver/product-groups/{group_product_no}/review-summary", params=params + ) + + async def get_product_group(self, origin_product_no: str) -> dict[str, Any]: + """Get product group. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + return await self._client.get(f"/v1/naver/products/{origin_product_no}/group") + + async def list_product_q_a( + self, + origin_product_no: str, + *, + store_url: str, + product_no: str, + host: str = "smartstore", + channel_uid: str | None = None, + page: int = 1, + ) -> dict[str, Any]: + """List product Q&A. - async def naver_web_search(self, *, query: str, page: int = 1) -> dict[str, Any]: + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = { + k: v + for k, v in { + "store_url": store_url, + "product_no": product_no, + "host": host, + "channel_uid": channel_uid, + "page": page, + }.items() + if v is not None + } + return await self._client.get(f"/v1/naver/products/{origin_product_no}/qnas", params=params) + + async def get_product_review_summary( + self, origin_product_no: str, *, leaf_category_id: str | None = None + ) -> dict[str, Any]: + """Get product review summary. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"leaf_category_id": leaf_category_id}.items() if v is not None} + return await self._client.get( + f"/v1/naver/products/{origin_product_no}/review-summary", params=params + ) + + async def list_product_reviews( + self, + origin_product_no: str, + *, + store_url: str, + product_no: str, + host: str = "smartstore", + channel_uid: str | None = None, + checkout_merchant_no: str | None = None, + page: int = 1, + sort: str = "REVIEW_RANKING", + ) -> dict[str, Any]: + """List product reviews. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = { + k: v + for k, v in { + "store_url": store_url, + "product_no": product_no, + "host": host, + "channel_uid": channel_uid, + "checkout_merchant_no": checkout_merchant_no, + "page": page, + "sort": sort, + }.items() + if v is not None + } + return await self._client.get( + f"/v1/naver/products/{origin_product_no}/reviews", params=params + ) + + async def get_product_detail( + self, + product_no: str, + *, + host: str = "brand", + store_url: str | None = None, + channel_uid: str | None = None, + broadcast_id: str | None = None, + live_channel_id: str | None = None, + query: str | None = None, + include_detail: bool = False, + ) -> dict[str, Any]: + """Get product detail. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = { + k: v + for k, v in { + "host": host, + "store_url": store_url, + "channel_uid": channel_uid, + "broadcast_id": broadcast_id, + "live_channel_id": live_channel_id, + "query": query, + "include_detail": include_detail, + }.items() + if v is not None + } + return await self._client.get(f"/v1/naver/products/{product_no}", params=params) + + async def get_review_video_key(self, *, attach_vid: str, stamp: str) -> dict[str, Any]: + """Get review video key. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = { + k: v for k, v in {"attach_vid": attach_vid, "stamp": stamp}.items() if v is not None + } + return await self._client.get("/v1/naver/reviews/video-inkey", params=params) + + async def get_review_detail(self, review_id: str) -> dict[str, Any]: + """Get review detail. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + return await self._client.get(f"/v1/naver/reviews/{review_id}") + + async def get_review_page_data(self, review_id: str) -> dict[str, Any]: + """Get review page data. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + return await self._client.get(f"/v1/naver/reviews/{review_id}/ssr-queries") + + async def naver_web_search( + self, *, query: str, page: int = 1, view: str | None = None + ) -> dict[str, Any]: """Naver web search. Generated from the OpenAPI spec; returns the raw response dict. """ - params = {k: v for k, v in {"query": query, "page": page}.items() if v is not None} + params = { + k: v for k, v in {"query": query, "page": page, "view": view}.items() if v is not None + } return await self._client.get("/v1/naver/search", params=params) + async def web_vertical_search(self, *, query: str, page: int = 1) -> dict[str, Any]: + """Web vertical search. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"query": query, "page": page}.items() if v is not None} + return await self._client.get("/v1/naver/search/web", params=params) + async def naver_shopping_bestseller_rankings( self, *, @@ -210,6 +433,38 @@ async def naver_shopping_bestseller_rankings( } return await self._client.get("/v1/naver/shopping/bestsellers", params=params) + async def shopping_brand_categories(self, *, parent_id: str | None = None) -> dict[str, Any]: + """Shopping brand categories. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"parent_id": parent_id}.items() if v is not None} + return await self._client.get("/v1/naver/shopping/brand-categories", params=params) + + async def shopping_brand_rankings( + self, + *, + category_id: str = "A", + age_type: str = "ALL", + sort_type: str = "BRAND_POPULAR", + period_type: str = "WEEKLY", + ) -> dict[str, Any]: + """Shopping brand rankings. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = { + k: v + for k, v in { + "category_id": category_id, + "age_type": age_type, + "sort_type": sort_type, + "period_type": period_type, + }.items() + if v is not None + } + return await self._client.get("/v1/naver/shopping/brand-rank", params=params) + async def naver_shopping_category_reference(self) -> dict[str, Any]: """Naver Shopping category reference. @@ -217,6 +472,22 @@ async def naver_shopping_category_reference(self) -> dict[str, Any]: """ return await self._client.get("/v1/naver/shopping/categories") + async def shopping_category_tree(self, *, parent_id: str | None = None) -> dict[str, Any]: + """Shopping category tree. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"parent_id": parent_id}.items() if v is not None} + return await self._client.get("/v1/naver/shopping/category-tree", params=params) + + async def shopping_deals(self, *, gender: str) -> dict[str, Any]: + """Shopping deals. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"gender": gender}.items() if v is not None} + return await self._client.get("/v1/naver/shopping/deals", params=params) + async def naver_datalab_shopping_keyword_insight( self, *, @@ -225,6 +496,9 @@ async def naver_datalab_shopping_keyword_insight( end_date: str, time_unit: str = "date", count: int = 20, + age: str = "", + gender: str = "", + device: str = "", ) -> dict[str, Any]: """Naver DataLab shopping keyword insight. @@ -238,11 +512,45 @@ async def naver_datalab_shopping_keyword_insight( "end_date": end_date, "time_unit": time_unit, "count": count, + "age": age, + "gender": gender, + "device": device, }.items() if v is not None } return await self._client.get("/v1/naver/shopping/insight", params=params) + async def shopping_it_items(self) -> dict[str, Any]: + """Shopping IT items. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + return await self._client.get("/v1/naver/shopping/it-items") + + async def shopping_keyword_periods( + self, + *, + category_id: str = "A", + age_type: str = "ALL", + sort_type: str = "KEYWORD_NEW", + period_type: str = "WEEKLY", + ) -> dict[str, Any]: + """Shopping keyword periods. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = { + k: v + for k, v in { + "category_id": category_id, + "age_type": age_type, + "sort_type": sort_type, + "period_type": period_type, + }.items() + if v is not None + } + return await self._client.get("/v1/naver/shopping/keyword-periods", params=params) + async def naver_shopping_trending_keyword_rankings( self, *, @@ -267,4 +575,270 @@ async def naver_shopping_trending_keyword_rankings( } return await self._client.get("/v1/naver/shopping/keywords", params=params) + async def get_live_broadcast(self, broadcast_id: str) -> dict[str, Any]: + """Get live broadcast. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + return await self._client.get(f"/v1/naver/shopping/live/broadcasts/{broadcast_id}") + + async def get_live_broadcast_counts(self, broadcast_id: str) -> dict[str, Any]: + """Get live broadcast counts. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + return await self._client.get(f"/v1/naver/shopping/live/broadcasts/{broadcast_id}/counts") + + async def list_live_broadcast_product_categories( + self, broadcast_id: str, *, attachment_type: str | None = None + ) -> dict[str, Any]: + """List live broadcast product categories. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"attachment_type": attachment_type}.items() if v is not None} + return await self._client.get( + f"/v1/naver/shopping/live/broadcasts/{broadcast_id}/product-categories", params=params + ) + + async def list_live_broadcast_products( + self, broadcast_id: str, *, page: str | None = None, size: str | None = None + ) -> dict[str, Any]: + """List live broadcast products. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"page": page, "size": size}.items() if v is not None} + return await self._client.get( + f"/v1/naver/shopping/live/broadcasts/{broadcast_id}/products", params=params + ) + + async def list_live_replay_products( + self, broadcast_id: str, *, include_before: bool = True, next: str = "0" + ) -> dict[str, Any]: + """List live replay products. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = { + k: v + for k, v in {"include_before": include_before, "next": next}.items() + if v is not None + } + return await self._client.get( + f"/v1/naver/shopping/live/broadcasts/{broadcast_id}/replay-products", params=params + ) + + async def get_live_channel(self, channel_id: str) -> dict[str, Any]: + """Get live channel. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + return await self._client.get(f"/v1/naver/shopping/live/channels/{channel_id}") + + async def list_live_channel_broadcasts(self, channel_id: str) -> dict[str, Any]: + """List live channel broadcasts. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + return await self._client.get(f"/v1/naver/shopping/live/channels/{channel_id}/broadcasts") + + async def list_live_channel_products( + self, channel_id: str, *, next: str | None = None, size: str | None = None + ) -> dict[str, Any]: + """List live channel products. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"next": next, "size": size}.items() if v is not None} + return await self._client.get( + f"/v1/naver/shopping/live/channels/{channel_id}/products", params=params + ) + + async def list_live_channel_shortclips( + self, + channel_id: str, + *, + sort_type: str | None = None, + next: str | None = None, + size: str | None = None, + ) -> dict[str, Any]: + """List live channel shortclips. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = { + k: v + for k, v in {"sort_type": sort_type, "next": next, "size": size}.items() + if v is not None + } + return await self._client.get( + f"/v1/naver/shopping/live/channels/{channel_id}/shortclips", params=params + ) + + async def shopping_live_keyword_rankings(self) -> dict[str, Any]: + """Shopping Live keyword rankings. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + return await self._client.get("/v1/naver/shopping/live/search/keywords") + + async def get_live_shortclip(self, shortclip_id: str) -> dict[str, Any]: + """Get live shortclip. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + return await self._client.get(f"/v1/naver/shopping/live/shortclips/{shortclip_id}") + + async def list_live_shortclip_products( + self, + shortclip_id: str, + *, + attachment_type: str | None = None, + page: str | None = None, + size: str | None = None, + sort: str | None = None, + ) -> dict[str, Any]: + """List live shortclip products. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = { + k: v + for k, v in { + "attachment_type": attachment_type, + "page": page, + "size": size, + "sort": sort, + }.items() + if v is not None + } + return await self._client.get( + f"/v1/naver/shopping/live/shortclips/{shortclip_id}/products", params=params + ) + + async def shopping_price_compare(self, *, query: str) -> dict[str, Any]: + """Shopping price compare. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"query": query}.items() if v is not None} + return await self._client.get("/v1/naver/shopping/price-compare", params=params) + + async def shopping_catalog_search( + self, *, query: str, sort: str = "RECOMMEND", page: int = 1 + ) -> dict[str, Any]: + """Shopping catalog search. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = { + k: v for k, v in {"query": query, "sort": sort, "page": page}.items() if v is not None + } + return await self._client.get("/v1/naver/shopping/search-catalog", params=params) + + async def shopping_filtered_search( + self, *, query: str, brand_id: str | None = None, attribute_id: str | None = None + ) -> dict[str, Any]: + """Shopping filtered search. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = { + k: v + for k, v in {"query": query, "brand_id": brand_id, "attribute_id": attribute_id}.items() + if v is not None + } + return await self._client.get("/v1/naver/shopping/search-filtered", params=params) + + async def shopping_search_filters(self, *, query: str) -> dict[str, Any]: + """Shopping search filters. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"query": query}.items() if v is not None} + return await self._client.get("/v1/naver/shopping/search-filters", params=params) + + async def shopping_product_search(self, *, query: str, tab: str = "m_view") -> dict[str, Any]: + """Shopping product search. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"query": query, "tab": tab}.items() if v is not None} + return await self._client.get("/v1/naver/shopping/search-products", params=params) + + async def shopping_vertical(self, vertical: str) -> dict[str, Any]: + """Shopping vertical. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + return await self._client.get(f"/v1/naver/shopping/verticals/{vertical}") + + async def get_store_profile( + self, store_url: str, *, host: str = "smartstore" + ) -> dict[str, Any]: + """Get store profile. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"host": host}.items() if v is not None} + return await self._client.get(f"/v1/naver/stores/{store_url}", params=params) + + async def get_store_bestsellers( + self, store_url: str, *, host: str = "smartstore", period: str = "DAILY" + ) -> dict[str, Any]: + """Get store bestsellers. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"host": host, "period": period}.items() if v is not None} + return await self._client.get(f"/v1/naver/stores/{store_url}/bestsellers", params=params) + + async def get_store_categories( + self, store_url: str, *, host: str = "smartstore" + ) -> dict[str, Any]: + """Get store categories. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"host": host}.items() if v is not None} + return await self._client.get(f"/v1/naver/stores/{store_url}/categories", params=params) + + async def get_store_products( + self, + store_url: str, + *, + host: str = "smartstore", + category_id: str = "ALL", + page: int = 1, + size: int = 20, + sort: str | None = None, + channel_uid: str | None = None, + ) -> dict[str, Any]: + """Get store products. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = { + k: v + for k, v in { + "host": host, + "category_id": category_id, + "page": page, + "size": size, + "sort": sort, + "channel_uid": channel_uid, + }.items() + if v is not None + } + return await self._client.get(f"/v1/naver/stores/{store_url}/products", params=params) + + async def video_search(self, *, query: str, page: int = 1) -> dict[str, Any]: + """Video search. + + Generated from the OpenAPI spec; returns the raw response dict. + """ + params = {k: v for k, v in {"query": query, "page": page}.items() if v is not None} + return await self._client.get("/v1/naver/video", params=params) + # --- END generated by sdk/codegen/facade ---