"HTML 검사하기"

Python으로 하는 웹 스크레이핑

Thomas Laetsch, PhD

Data Scientist, NYU

"Source" = HTML 코드

소스 보기

소스

Python으로 하는 웹 스크레이핑

요소 검사

요소 검사

요소 소스

Python으로 하는 웹 스크레이핑

HTML 텍스트를 Selector로

from scrapy import Selector
import requests

url = 'https://en.wikipedia.org/wiki/Web_scraping'
html = requests.get( url ).content
sel = Selector( text = html )
Python으로 하는 웹 스크레이핑

우리의 비법

Python으로 하는 웹 스크레이핑

Preparing Video For Download...