• 카테고리

    질문 & 답변
  • 세부 분야

    데이터 분석

  • 해결 여부

    미해결

네이버 쇼핑 상품 정보 수집하기에서 AttributeError가 뜹니다

21.12.19 00:25 작성 조회수 166

0

name = item.find_element_by_selector(

        '.basicList_title__3P9Q7').text

price = item.find_element_by_selector('.price_num__2WUXn').text

link = item.find_element_by_selector(        '.basicList_title__3P9Q7>a').get_attribute('href')

 

를 입력했는데,  AttributeError: 'WebElement' object has no attribute 'find_element_by_selector'가 뜹니다 그래서 버젼문제인가 싶어서 버젼을 낮춰봤는데도 안되더라고요 무엇이 문제인가요?

답변 1

답변을 작성해보세요.

1

삐빅 오타입니다.

 

find_element_by_css_selector
이상우님의 프로필

이상우

질문자

2021.12.19

아..맞네요 감사합니다!