Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 383 Bytes

2021-08-14.md

File metadata and controls

20 lines (13 loc) · 383 Bytes

python으로 웹 스크래퍼 만들기(2.6 ~ 2.9)

일자리만 추출

span 태그 중 title 이라는 어트리뷰션을 가지고 있는 태그의 string 만을 가져옴

result.find("span", title=True).string

요소 값 중에 None이 있을 때와 값이 있을 때의 출력방법

if param is not None:
  print(param.string)
else:
  continue