最近在搭建一个jekyll
到Github上,考虑到以前的wordpress站很多文章都是有用的,于是找了很多方法来迁移wordpress上面的文章;
网上找了各种办法,适合windows而且更多人选择的就是exitwp
了,但是在使用过程中出现了这个问题:
python exitwp.py
reading: wordpress-xml\wordpress.xml Traceback (most recent call last): File "exitwp.py", line 373, indata = 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
的,尝试无果,求大神指点~
用这个方法不行吗?
https://import.jekyllrb.com/d...