"Inspectarea HTML-ului"

Web Scraping în Python

Thomas Laetsch, PhD

Data Scientist, NYU

"Sursă" = Cod HTML

ViewSource.png

Source.png

Web Scraping în Python

Inspectarea elementelor

InspectElement.png

ElementSource.png

Web Scraping în Python

Din text HTML la 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 în Python

Cunoașteți secretele noastre

Web Scraping în Python

Preparing Video For Download...