Python으로 하는 웹 스크레이핑
Thomas Laetsch
Data Scientist, NYU
xpath = '/html/body/div[2]'
간단한 XPath:
/ 는 한 세대씩 이동합니다.
xpath = '/html/body/div[2]'
table 요소로 이동:xpath = '//table'
body의 두 번째 div 자식의 하위에 있는 모든 table 요소로 이동:xpath = '/html/body/div[2]//table`
Python으로 하는 웹 스크레이핑