
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
title = soup.select_one ("#body-content > div.newest-list > div > table > tbody > tr:nth-child(2)").text
잘못 copy selector 했는지 궁금합니다.ㅠㅠ
전체를 캡처해 주시면, 튜터님들이 빠르게 상황을 이해할 수 있어요.



작성한 코드 및 에러 메세지
오$ c:/sparta/pythonprac/venv/Scripts/python.exe c:/sparta/pythonprac/genie.py
Traceback (most recent call last):
File "c:/sparta/pythonprac/genie.py", line 10, in <module>
title = soup.select_one ("#body-content > div.newest-list > div > table > tbody > tr:nth-child(2)").text
AttributeError: 'NoneType' object has no attribute 'text'
(venv)
태양산업@DESKTOP-15V9HPI MINGW64 /c/sparta/pythonprac/venv
$류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.
T◦$ c:/sparta/pythonprac/venv/스크립트/python.exec:/tftprac/tftprac/tftprac/tftp.파이의
추적(최신 통화 마지막):
파일 "c:/sys/sysprac/genie.py ", 10행, <cisco>
제목 = 수프.select_one("#body-content > div.div-list > div > table > tbody > tr:nth-child(2)" 텍스트
특성 오류: 'NoneType' 개체에 'text' 특성이 없습니다ip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.
Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!
