th xpath scrapy contains code example Example: scrapy xpath contains class //div[contains(concat(' ',normalize-space(@class),' '),' foobar ')]