Python script: emlog2typecho

Emlog2typecho is a script written in python to migrate the database of Emlog to Typecho. As you can see, my blog on this website is migrated from it. I believe you can also use it easily. At present, it can automatically migrate articles, pages, categories and tags. Of course, you can also participate in the update, modification and optimization of this tool. Github address is at the end of the text.

usage method

  1. Create a new emlog database locally and import the data to be converted
  2. Then install Typecho to establish the database of Typecho
  3. Set two database names in the script (the default is "emlog" and "typecho")
  4. Run emlog2typecho.py
  5. Back up the Typecho database and upload it to your blog

be careful

  • This Python code uses the MySQL db library to connect to MySQL. If you do not have this package, you can use pip to install MySQL Python
  • Typecho should be a newly installed empty database to avoid unnecessary troubles

an account of happenings after the event being told

Print/Export
language
  ?