BaşlayınÜcretsiz Başlayın

Divvy Up This Exercise

We have pre-loaded an HTML into the string variable html. In this two part problem you will use this html variable as the HTML document to set up a Selector object with, and create a SelectorList which selects all div elements; then, you will check your understanding of what happens within the SelectorList.

Bu egzersiz

Web Scraping in Python

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

from scrapy import Selector

# Create a Selector selecting html as the HTML document
sel = Selector( ____ )

# Create a SelectorList of all div elements in the HTML document
divs = sel.xpath( ____ )
Kodu Düzenle ve Çalıştır