title: How to extract the value of an HTML attribute using scrapy response.xpath?
body: <p>I'm trying to extract the value of the attribute <code>data-asin-price</code> inside a <code>&lt;div&gt;</code> tag</p>
  
  <p>Which in the example below you can see is <strong>22.63</strong></p>
  
  <pre><code>&lt;div id="cerberus-data-metrics" style="display: none;" data-asin="B079GMRZ8S" data-asin-price="22.63" data-asin-shipping="0.0" data-asin-currency-code="AUD" data-substitute-count="-1" data-device-type="WEB" data-display-code="Asin is not eligible because it is not enabled"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Is there any way to do this using response.xpath() with scrapy?</p>
  
  <p>Thank you</p>