"Kiểm tra HTML"

Web Scraping với Python

Thomas Laetsch, PhD

Data Scientist, NYU

"Source" = Mã HTML

Xem mã nguồn

Mã nguồn

Web Scraping với Python

Kiểm tra phần tử

Inspect Element

Mã phần tử

Web Scraping với Python

Từ HTML sang Selector

from scrapy import Selector
import requests

url = 'https://en.wikipedia.org/wiki/Web_scraping'
html = requests.get( url ).content
sel = Selector( text = html )
Web Scraping với Python

Bạn đã biết bí quyết của chúng tôi

Web Scraping với Python

Preparing Video For Download...