def parse_review(self, response): Item = ItemLoader(Review(), response) Item.add_xpath('titulo', '//h1/text()') Item.add_xpath( 'calificacion', '//span[@class="side-wrapper side-wrapper hexagon-content"]/text()' ) yield Item.load_item()
def parse_video(self, response): Item = ItemLoader(Video(), response) Item.add_xpath('titulo', '//h1/text()') Item.add_xpath('publicacion', '//span[@class="publish-date"]/text()') yield Item.load_item()
def parse_news(self, response): Item = ItemLoader(Articulo(), response) Item.add_xpath('titulo', '//h1/text()') Item.add_xpath('contenido', '//div[@id="id_text"]//*/text()') yield Item.load_item()