def parse(self, response): sel = Selector(response) base_url=get_base_url(response) sites = sel.xpath(u'//title/text()') print sites