title: Is there a way to find a string in a HTML file and return its XPath?
body: <p>I'm trying to do reverse engineering in a scraper to generate a model to extract data.</p>
  
  <p>So, I know the title of a page and I want to look for it inside an HTML code and then return the XPath or CSS Selector to this location.</p>
  
  <p>I'm using <a href="https://scrapy.org" rel="nofollow noreferrer">Scrapy</a> in my project, but, for this reverse engineering, I thought maybe <a href="https://www.crummy.com/software/BeautifulSoup/bs4/doc/#" rel="nofollow noreferrer">Beautiful Soup 4</a> combined with lxml parser could help me too. I just haven't found any docs about it.</p>
  
  <p>Does anyone know if there is a way to do this?</p>