title: Extracting attribute value using lxml
body: <p>I am using lxml library to get the attribute value from a HTML page.</p>
  
  <p>For example :</p>
  
  <pre><code>&lt;span class="you-save"&gt;Rs. 5000&lt;/span&gt;
  </code></pre>
  
  <p>I am getting the correct result (5000) using below</p>
  
  <pre><code>print doc.xpath('//span[@class="you-save"]//text()') 
  </code></pre>
  
  <p>I want to get the attribute value, for example </p>
  
  <pre><code>&lt;meta itemprop="price" content="4999.00"&gt;
  </code></pre>
  
  <p>I want to extract "4999.00". I am unable to figure out this. </p>
  
  <p>I have tried below but not getting any results. </p>
  
  <pre><code> print doc.xpath('//meta[@itemprop="price"]/content::text()')
  </code></pre>