인프런 커뮤니티 질문&답변
xml 분석 중
작성
·
164
답변 1
0
TeamLab
지식공유자
아래 코드를 참고해볼 수 있을거 같습니다.
status는 attribute라고 할 수 있는데 values["from"] 과 같이 attribute를 뽑아서 쓸 수가 있습니다.
Findall로 처음 element를 뽑고 다음으로 ["status"]를 사용해서 attribute를 뽑으면 될 거 같습니다.
https://stackoverflow.com/questions/45386116/extracting-similar-xml-attributes-with-beautifulsoup





