我有来自我的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文件中的数据?基本上,我只需要像从“Developers Tool”视图中一样获得相同的信息,但使用Bash或Python。
2条答案
按热度按时间zynd9foi1#
你必须用这个API打开目录,而不是文件。另外值得注意的是,使用
plyvel
库可能更好:q43xntqr2#
您可以使用此选项: