Skip to content

BKDragon/ZeroNet_WordPress2ZeroBlog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZeroNet_WordPress2ZeroBlog

Convert WordPress post to ZeroBlog

Usage

install html2text python package first.

pip3 install html2text

Convert

If you want to convert your WordPress posts to ZeroBlog once only, follow the guide below.

  1. Export your wordpress posts to a xml file.
  2. download this repo and edit the first two variables in config.ini ( site_json_path and wordpress_xml_path ).
  3. run python3 convert.py, wait it finished, sign your site and published it.then refresh webpage, you will see your post.

Sync

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.

  1. Download this repo and edit all variables except wordpress_xml_path in config.ini.
  2. setup a crontab task like 0 */2 * * * /bin/bash /YOURPATH/ZeroNet_WordPress2ZeroBlog/run.sh >/dev/null 2>&1.

About

Convert WordPress post to ZeroBlog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.6%
  • Shell 12.4%