response = scrapy.Selector(text=text)
response.xpath('//div[@class="d-grid-main"]')
div = response.xpath('//div[@class="d-grid-main"]')[0]
div.xpath('.//p[@class="class-name"]/text()').extract()
map(str.strip, div.xpath('.//p[@class="class-name"]/text()').extract())
div.xpath('normalize-space(.//p[@class="class-name"])').extract()
Strip \n \t \r in scrapy