Skip to content Skip to sidebar Skip to footer

How To Read/modify A Local File Of Html5 Local Storage From Python?

I did an Ubuntu Webapp and I'd like to create a Preferences dialog with a litte hack. From the webapp I can storage/retrieve values with HTML5: if (localStorage.getItem('showNotifi

Solution 1:

This worked :)

import sqlite3
conn = sqlite3.connect('/home/costales/.local/share/Telegramzhukovgithubio/Local Storage/http_zhukov.github.io_0.localstorage')
c = conn.cursor()
c.execute("SELECT key,value FROM ItemTable where key='count'")
print c.fetchone()
conn.close()

Post a Comment for "How To Read/modify A Local File Of Html5 Local Storage From Python?"