response.xpath("//*[contains(text(), 'txt goes here')]").getall()
Home » PostsPython + Scrapy: find element with textSeptember 29, 2021 · 1 min · 4 words · Saqib Razzaqresponse.xpath("//*[contains(text(), 'txt goes here')]").getall()