在python中反序列化PHP数据
可能的重复:
如何阅读/理解一个PHP序列化数据字符串在python中
我正在使用 python 访问由 Drupal 安装管理的数据库.我想在Drupal中访问的数据以PHP序列化对象的形式保存在数据库中.
I'm using python to access a database which is managed by a Drupal install. The data I want to access in Drupal in saved in the database as a PHP serialized object.
是否有任何预构建的 python 模块可以将 PHP 序列化对象反序列化为 python 对象?我进行了一些搜索,但一无所获.
Are there any pre-built python modules which can deserialize a PHP serialized object into a python object? I've done some searching and come up with nothing.
我意识到我可以从头开始编写自己的解析器,但我更愿意使用经过尝试和测试的东西.
I realize I could write my own parser from scratch but I'd rather use something thats been tried and tested.
推荐答案
您是否正在寻找 phpserialize?
相关文章