네이버 정책 변경으로 인한 이미지 크롤링 코드 수정

This commit is contained in:
skkim committed 2026-07-13 14:47:13 +09:00
1 parent 18ba089110
commit 593b6d9922
3 files changed
+153 -61

No files matched your search

+4 -2
View File
@@ -304,11 +304,13 @@ async def _crawling_logic(
extra_photo_urls = scraper.extra_photo_urls or []
if len(owner_images) >= NvMapScraper.SUPPLEMENT_THRESHOLD:
scraper.image_link_list = owner_images[: NvMapScraper.MAX_IMAGES]
# 업체 제공 사진은 필터링 면제 대상이므로 상한 없이 전량 사용한다
# (MAX_IMAGES 상한은 방문자 사진이 섞이는 보충 경로에만 적용).
scraper.image_link_list = list(owner_images)
step3_elapsed = (time.perf_counter() - step3_start) * 1000
logger.info(
f"[crawling] Step 3 SKIP - 업체 사진 {len(owner_images)}장 "
f"≥ {NvMapScraper.SUPPLEMENT_THRESHOLD}장 → 방문자 사진 필터링 생략"
f"≥ {NvMapScraper.SUPPLEMENT_THRESHOLD}장 → 방문자 사진 필터링 생략, 전량 사용"
)
else:
try: