我正在尝试使用python将数据从.doc文件解析为json,这样我就可以轻松填充数据库。 doc文件中的数据如下所示:
1. Title1, dd.mm.yy at HH:ss, description1
2. Title2, dd.mm.yy at HH:ss, description2
3. Title3, dd.mm.yy at HH:ss, description3
,依此类推,说明中也包含超链接。所以我想将所有数据解析为json,所以看起来像这样:
'{"1": {"title": "Title1", "description": "description1", "link": "hyperlink1", "created_at": "dd.mm.yy HH:ss"},
"2": {"title": "Title2", "description": "description2", "link": "hyperlink2", "created_at": "dd.mm.yy HH:ss"},
"3": {"title": "Title3", "description": "description3", "link": "hyperlink3", "created_at": "dd.mm.yy HH:ss"}}'
将感谢您的帮助。