wordpress导出的xml转成.md文件
最近在搭建一个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 <module>
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
的,尝试无果,求大神指点~
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
用这个方法不行吗?
https://import.jekyllrb.com/d...