我有来自Google Chrome的LevelDB(IndexedDB)文件,该文件位于此文件夹中:
/home/<user>/.config/google-chrome/Default/IndexedDB/https_<site>_0.indexeddb.leveldb/
文件夹内容是:
$ ls
000005.ldb 000006.log CURRENT LOCK LOG MANIFEST-000001
我有一个非常简单的python脚本来打开它:
#!/bin/python
import leveldb
db = leveldb.LevelDB('./000005.ldb')
现在我总是得到这个错误:
leveldb.LevelDBError: IO error: ./000005.ldb/LOCK: Not a directory
有没有人有关于如何正确访问我的IndexDB文件中存储的数据的信息?基本上,我只需要从“开发人员工具”视图中获取相同的信息,但使用Bash或Python .