response.xpath("//*[contains(text(), 'txt goes here')]").getall()
Home » Posts Find element that has particular text in Scrapy March 19, 2021 · 1 min · Saqib Razzaq response.xpath("//*[contains(text(), 'txt goes here')]").getall()