how to use a contains in scrapy xpath code example Example: scrapy xpath contains class //div[contains(concat(' ',normalize-space(@class),' '),' foobar ')]