강의

멘토링

커뮤니티

Inflearn Community Q&A

tkddn20752034's profile image
tkddn20752034

asked

[New Revised Edition] This is Real Web Crawling - Basic Edition

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

Written on

·

237

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'가 뜹니다 그래서 버젼문제인가 싶어서 버젼을 낮춰봤는데도 안되더라고요 무엇이 문제인가요?

python웹-크롤링

Answer 1

1

startcoding님의 프로필 이미지
startcoding
Instructor

삐빅 오타입니다.

 

find_element_by_css_selector
tkddn20752034님의 프로필 이미지
tkddn20752034
Questioner

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

tkddn20752034's profile image
tkddn20752034

asked

Ask a question