"HTML'yi inceleme"

Python ile Web Scraping

Thomas Laetsch, PhD

Data Scientist, NYU

"Source" = HTML Kodu

KaynağıGörüntüle.png

Kaynak.png

Python ile Web Scraping

Öğeleri inceleme

Öğeyiİncele.png

ÖğeKaynağı.png

Python ile Web Scraping

HTML metninden Selector'a

from scrapy import Selector
import requests

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

Artık sırlarımızı biliyorsunuz

Python ile Web Scraping

Preparing Video For Download...