title: chrome javascript save data for access through filesystem
body: <p>I need to save some key/value pairs continuously and using a javascript on a web page. Currently, I am saving those pairs in HTML5 local storage using </p>
  
  <pre><code>localStorage.setItem("key_1", val_1);
  </code></pre>
  
  <p>I need to access those values in realtime in python or R, for that I am using sqlite to read the localstorage db file in </p>
  
  <p><code>/Users/user_name/Library/Application Support/Google/Chrome/Default/Local Storage/&lt;site_identifier&gt;.localstorage</code></p>
  
  <p>But the issue is that Chrome doesn't update the local storage file in real-time there is usually a 10-second delay and sometimes more. However, if I see in application tab in developer tools it updates the key/value pair in real-time.</p>
  
  <p>Please advise how can I save the values and get them in python in near real-time, Am I taking the wrong path here to achieve the results, Any alternative method to access data from javascript running in a Chrome session to Python would be fine as well.</p>
  
  <p>Thanks in advance.</p>