Contents:
import scrapy [docs] class WebPage: """Model of a web page""" def __init__(self, url, html): self.url = url self.html = html [docs] def get_title(self): return scrapy.Selector(text=self.html).css("title::text").get()