Convert WordPress post to ZeroBlog
install html2text
python package first.
pip3 install html2text
If you want to convert your WordPress posts to ZeroBlog once only, follow the guide below.
- Export your wordpress posts to a xml file.
- download this repo and edit the first two variables in
config.ini
(site_json_path
andwordpress_xml_path
). - run
python3 convert.py
, wait it finished, sign your site and published it.then refresh webpage, you will see your post.
If you want to sync your WordPress posts to ZeroBlog, which means after you published a new post on WordPress, your ZeroBlog can be updated automatically, follow this guide.
- Download this repo and edit all variables except
wordpress_xml_path
inconfig.ini
. - setup a crontab task like
0 */2 * * * /bin/bash /YOURPATH/ZeroNet_WordPress2ZeroBlog/run.sh >/dev/null 2>&1
.