Find element that has particular text in Scrapy response.xpath("//*[contains(text(), 'txt goes here')]").getall()