inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

로인스님의 게시글

로인스 로인스

@kky0209124264

수강평 작성수
1
평균평점
5.0

게시글 1

질문&답변

네이버쇼핑 질문 있습니다!

이미 그렇게도 진행해봤는데 그렇게해도 40개중에 2개의 썸네일 링크만 가져왔습니다 ㅠㅠ 몇일동안 gpt 4o로 분석하면서 계속해봤는데도 동일한현상 이였습니다 40 (총40개상품중 아래 2개 링크만 가져옴 ) https://shopping-phinf.pstatic.net/main_8617681/86176813957.1.jpg?type=f140 https://shopping-phinf.pstatic.net/main_4880094/48800941696.jpg?type=f140 items = soup.select(".product_item__MDtDF") print(len(items)) for item in items: # 이미지 URL 찾기 img = item.select_one(".product_img_area__cUrko img") if img: # src 속성 확인 img_src = img.get('src') # data-src 속성 확인 img_data_src = img.get('data-src') # 이미지 URL 출력 print(img_src if img_src else img_data_src)

좋아요수
0
댓글수
3
조회수
354