python - wordpress导出的xml转成.md文件

 欣儿2502862161 发布于 2022-10-29 12:16

最近在搭建一个jekyll到Github上,考虑到以前的wordpress站很多文章都是有用的,于是找了很多方法来迁移wordpress上面的文章;
网上找了各种办法,适合windows而且更多人选择的就是exitwp了,但是在使用过程中出现了这个问题:

python exitwp.py
reading: wordpress-xml\wordpress.xml
Traceback (most recent call last):
  File "exitwp.py", line 373, in 
    data = parse_wp_xml(wpe)
  File "exitwp.py", line 85, in parse_wp_xml
    root = tree.parse(file, parser)
  File "C:\Python27\lib\xml\etree\ElementTree.py", line 656, in parse
    parser.feed(data)
  File "C:\Python27\lib\xml\etree\ElementTree.py", line 1653, in feed
    self._raiseerror(v)
  File "C:\Python27\lib\xml\etree\ElementTree.py", line 1517, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 13516, column 6

网上找到类似修改exitwp.py的输出格式为utf-8的,尝试无果,求大神指点~

1 个回答
  • 用这个方法不行吗?

    https://import.jekyllrb.com/d...

    2022-11-12 01:46 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有