title: How to scrape lat/long from JavaScript code using Scrapy / XPath
body: <p>I want to extract the latitude and longitude from this script</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      window.DETAILS_PAGE_MAP_GLOBALS = {
          GOOGLE_MAPS_LONGITUDE: 55.4159330979,
          GOOGLE_MAPS_LATITUDE: 25.1549968578
      };
  &lt;/script&gt;
  </code></pre>
  
  <p>I tried this xpath</p>
  
  <pre><code>contains(.//script[@type='text/javascript']/text(), 'window.DETAILS_PAGE_MAP_GLOBALS')
  </code></pre>
  
  <p>I always get <code>0</code>. <strong>I know it is referring to false</strong></p>
  
  <p>my question how could I get the lat and long from that script? I think contains might help but i don't know how</p>