Inspection du code HTML

Web Scraping en Python

Thomas Laetsch, PhD

Data Scientist, NYU

« Source » = code HTML

Afficher le code source

Code source

Web Scraping en Python

Inspection des éléments

Inspecter l’élément

Source de l’élément

Web Scraping en Python

Du texte 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 )
Web Scraping en Python

Vous connaissez nos secrets

Web Scraping en Python

Preparing Video For Download...