title: How to extract particular key from HTTP cookies in Python?
body: <p>Trying to get a particular value from the cookie string of an HTTP request in Python.  I believe possibly using the <code>requests</code> library or <code>urllib2</code> would be a good idea.</p>
  
  <p><strong>Example:</strong></p>
  
  <p>Assume</p>
  
  <pre><code>headers['cookie'] = 'somekey=somevalue;someotherkey=someothervalue'
  </code></pre>
  
  <p>Trying to retrieve the value of <code>somekey</code>.</p>
  
  <p>Thanks very much!</p>