title: How could I access localstorage under Python requests
body: <p>I found I need to send a session id <code>x-connection-id</code> which is stored by server side  Javascript <code>localStorage.setItem("x-connection-id")</code></p>
  
  <p>If and only if I get this id, so that I can keep going the following request.</p>
  
  <p>Any idea ?</p>
  
  <pre><code>headers = {
      'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36',
      'x-connect-id': 'i need it',
  }
  
  req.get('https://api.sample/api/v1//flightavailability?'+urllib.parse.urlencode(params))
  </code></pre>