Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,35 @@
{
"metadata": {
"lastUpdated": "2026-01-18T12:31:21Z",
"currentVersion": "1.0.1",
"lastUpdated": "2026-01-18T12:51:13Z",
"currentVersion": "1.0.2",
"projectType": "python",
"totalReleases": 6
"totalReleases": 7
},
"releases": [
{
"version": "1.0.2",
"project_type": "python",
"date": "2026-01-18",
"pr_number": 17,
"raw_summary": "## Summary by CodeRabbit\n\n# ๋ฆด๋ฆฌ์Šค ๋…ธํŠธ\n\n* **Chores**\n * ๋ฒ„์ „์„ v1.0.2๋กœ ์—…๋ฐ์ดํŠธํ–ˆ์Šต๋‹ˆ๋‹ค.\n * ๋ฌธ์„œ๋ฅผ ์ตœ์‹  ๋ฒ„์ „ ์ •๋ณด๋กœ ์—…๋ฐ์ดํŠธํ–ˆ์Šต๋‹ˆ๋‹ค.\n\n* **Bug Fixes**\n * ์ง€๋„ ๋ฐ์ดํ„ฐ ์ˆ˜์ง‘ ์‹œ ์•ˆ์ •์„ฑ์„ ๊ฐœ์„ ํ–ˆ์Šต๋‹ˆ๋‹ค.\n * ์ฃผ์†Œ ์ถ”์ถœ ๋กœ์ง์„ ๊ฐ•ํ™”ํ•˜๊ณ  ๋” ๊ฒฌ๊ณ ํ•œ ์˜ค๋ฅ˜ ์ฒ˜๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.",
"parsed_changes": {
"chores": {
"title": "Chores",
"items": [
"๋ฒ„์ „์„ v1.0.2๋กœ ์—…๋ฐ์ดํŠธํ–ˆ์Šต๋‹ˆ๋‹ค.",
"๋ฌธ์„œ๋ฅผ ์ตœ์‹  ๋ฒ„์ „ ์ •๋ณด๋กœ ์—…๋ฐ์ดํŠธํ–ˆ์Šต๋‹ˆ๋‹ค."
]
},
"bug_fixes": {
"title": "Bug Fixes",
"items": [
"์ง€๋„ ๋ฐ์ดํ„ฐ ์ˆ˜์ง‘ ์‹œ ์•ˆ์ •์„ฑ์„ ๊ฐœ์„ ํ–ˆ์Šต๋‹ˆ๋‹ค.",
"์ฃผ์†Œ ์ถ”์ถœ ๋กœ์ง์„ ๊ฐ•ํ™”ํ•˜๊ณ  ๋” ๊ฒฌ๊ณ ํ•œ ์˜ค๋ฅ˜ ์ฒ˜๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค."
]
}
},
"parse_method": "markdown"
},
{
"version": "1.0.1",
"project_type": "python",
Expand Down
18 changes: 16 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
# Changelog

**ํ˜„์žฌ ๋ฒ„์ „:** 1.0.1
**๋งˆ์ง€๋ง‰ ์—…๋ฐ์ดํŠธ:** 2026-01-18T12:31:21Z
**ํ˜„์žฌ ๋ฒ„์ „:** 1.0.2
**๋งˆ์ง€๋ง‰ ์—…๋ฐ์ดํŠธ:** 2026-01-18T12:51:13Z

---

## [1.0.2] - 2026-01-18

**PR:** #17

**Chores**
- ๋ฒ„์ „์„ v1.0.2๋กœ ์—…๋ฐ์ดํŠธํ–ˆ์Šต๋‹ˆ๋‹ค.
- ๋ฌธ์„œ๋ฅผ ์ตœ์‹  ๋ฒ„์ „ ์ •๋ณด๋กœ ์—…๋ฐ์ดํŠธํ–ˆ์Šต๋‹ˆ๋‹ค.

**Bug Fixes**
- ์ง€๋„ ๋ฐ์ดํ„ฐ ์ˆ˜์ง‘ ์‹œ ์•ˆ์ •์„ฑ์„ ๊ฐœ์„ ํ–ˆ์Šต๋‹ˆ๋‹ค.
- ์ฃผ์†Œ ์ถ”์ถœ ๋กœ์ง์„ ๊ฐ•ํ™”ํ•˜๊ณ  ๋” ๊ฒฌ๊ณ ํ•œ ์˜ค๋ฅ˜ ์ฒ˜๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

---

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# MapSee-AI

<!-- ์ˆ˜์ •ํ•˜์ง€๋งˆ์„ธ์š” ์ž๋™์œผ๋กœ ๋™๊ธฐํ™” ๋ฉ๋‹ˆ๋‹ค -->
## ์ตœ์‹  ๋ฒ„์ „ : v0.1.3 (2026-01-18)
## ์ตœ์‹  ๋ฒ„์ „ : v1.0.1 (2026-01-18)

[์ „์ฒด ๋ฒ„์ „ ๊ธฐ๋ก ๋ณด๊ธฐ](CHANGELOG.md)

Expand Down
29 changes: 21 additions & 8 deletions src/services/scraper/platforms/naver_map_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
๋„ค์ด๋ฒ„ ์ง€๋„ ์žฅ์†Œ ์Šคํฌ๋ž˜ํ•‘ ๋กœ์ง
"""
import logging
import asyncio
from urllib.parse import quote

from playwright.async_api import async_playwright
Expand All @@ -14,7 +13,6 @@
parse_rating,
extract_naver_place_id_from_url,
SCRAPE_TIMEOUT_MS,
PAGE_LOAD_WAIT_SEC,
ELEMENT_WAIT_TIMEOUT_MS,
MAX_IMAGE_COUNT,
)
Expand Down Expand Up @@ -107,9 +105,8 @@ async def search_and_scrape(self, query: str) -> NaverPlaceInfo:

logger.info("์ฒซ ๋ฒˆ์งธ ๊ฒฐ๊ณผ ํด๋ฆญ ์™„๋ฃŒ, ์ƒ์„ธ ํŽ˜์ด์ง€ ๋กœ๋“œ ๋Œ€๊ธฐ...")

# [5/7] ์ƒ์„ธ ํŽ˜์ด์ง€ ๋กœ๋“œ ๋Œ€๊ธฐ
# [5/7] ์ƒ์„ธ ํŽ˜์ด์ง€ ๋กœ๋“œ ๋Œ€๊ธฐ (entryIframe์ด ๋‚˜ํƒ€๋‚  ๋•Œ๊นŒ์ง€)
logger.info("[5/7] ์ƒ์„ธ ํŽ˜์ด์ง€ ๋กœ๋“œ ๋Œ€๊ธฐ...")
await asyncio.sleep(PAGE_LOAD_WAIT_SEC)

# entryIframe ๋Œ€๊ธฐ
logger.info("entryIframe ๋Œ€๊ธฐ...")
Expand Down Expand Up @@ -149,8 +146,22 @@ async def search_and_scrape(self, query: str) -> NaverPlaceInfo:

logger.debug(f"entry_frame URL: {entry_frame.url}")

# ์ถ”๊ฐ€ ๋Œ€๊ธฐ: DOM์ด ์™„์ „ํžˆ ๋กœ๋“œ๋  ๋•Œ๊นŒ์ง€
await asyncio.sleep(2)
# DOM ์™„์ „ ๋กœ๋“œ ๋Œ€๊ธฐ (์ฃผ์†Œ ์š”์†Œ๊ฐ€ ๋‚˜ํƒ€๋‚  ๋•Œ๊นŒ์ง€)
try:
await entry_frame.wait_for_selector('span.LDgIH', timeout=ELEMENT_WAIT_TIMEOUT_MS)
except Exception:
pass # ์ฃผ์†Œ๊ฐ€ ์—†๋Š” ์žฅ์†Œ๋„ ์žˆ์œผ๋ฏ€๋กœ ๋ฌด์‹œ

# "์ฐพ์•„๊ฐ€๋Š” ๊ธธ" ๋”๋ณด๊ธฐ ๋ฒ„ํŠผ ํด๋ฆญ (์ „์ฒด ํ…์ŠคํŠธ ํŽผ์น˜๊ธฐ)
try:
directions_expand_button = entry_frame.locator('a.xHaT3[aria-expanded="false"]')
if await directions_expand_button.count() > 0:
await directions_expand_button.first.click()
# ํŽผ์ณ์ง„ ์ƒํƒœ ๋Œ€๊ธฐ
await entry_frame.wait_for_selector('a.xHaT3[aria-expanded="true"]', timeout=2000)
logger.debug("์ฐพ์•„๊ฐ€๋Š” ๊ธธ ๋”๋ณด๊ธฐ ํด๋ฆญ ์™„๋ฃŒ")
except Exception as error:
logger.debug(f"์ฐพ์•„๊ฐ€๋Š” ๊ธธ ๋”๋ณด๊ธฐ ํด๋ฆญ ์‹คํŒจ (๋ฌด์‹œ): {error}")

# iframe ๋‚ด์—์„œ JavaScript ์‹คํ–‰
info = await entry_frame.evaluate(f'''() => {{
Expand Down Expand Up @@ -204,8 +215,10 @@ async def search_and_scrape(self, query: str) -> NaverPlaceInfo:
const subwayElement = document.querySelector('div.nZapA');
result.subway_info = subwayElement ? subwayElement.textContent.trim() : null;

// ์ฐพ์•„๊ฐ€๋Š” ๊ธธ
const directionsElement = document.querySelector('span.zPfVt') ||
// ์ฐพ์•„๊ฐ€๋Š” ๊ธธ (์ „์ฒด ํ…์ŠคํŠธ - ํŽผ์ณ์ง„ ์ƒํƒœ ์šฐ์„ )
const expandedDirections = document.querySelector('a.xHaT3[aria-expanded="true"] span.zPfVt');
const directionsElement = expandedDirections ||
document.querySelector('span.zPfVt') ||
document.querySelector('.place_section_content .zPfVt');
result.directions_text = directionsElement ? directionsElement.textContent.trim() : null;

Expand Down
6 changes: 3 additions & 3 deletions version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
# - ๋ฒ„์ „์€ ํ•ญ์ƒ ๋†’์€ ๋ฒ„์ „์œผ๋กœ ์ž๋™ ๋™๊ธฐํ™”๋ฉ๋‹ˆ๋‹ค
# ===================================================================

version: "1.0.1"
version_code: 17 # app build number
version: "1.0.2"
version_code: 18 # app build number
project_type: "python" # spring, flutter, react, react-native, react-native-expo, node, python, basic
metadata:
last_updated: "2026-01-18 12:29:56"
last_updated: "2026-01-18 12:49:53"
last_updated_by: "Cassiiopeia"
default_branch: "main"
integrated_from: "SUH-DEVOPS-TEMPLATE"
Expand Down