Exporting Comment Data

Method 1

You can go to the 管理面板 of the comments in Twikoo, select the 导出 tab, and click the 导出评论 button to export Twikoo’s comment data into a json file.

Export the comment data of Twikoo into a json file. For details, see the following article:

Twikoo 评论数据导出教程 - iMaeGoo’s Blog

Restoring Comment Data

If you only want to back up the data and have no other needs, you’re done at this step. To restore comment data later, simply select the 导入 tab, choose the source system Twikoo(JSON), select the backup file you exported, and click 开始导入. If you also need to modify the comment data, keep reading.

Editing Comment Data

You can open the Twikoo comment data file with the .json extension using Visual Studio Code or another IDE to edit the comment data you see. You can refer to the table below for the meaning of common fields when making changes:

ValueMeaning
nickNickname
mailEmail
mailMd5Email MD5 value
linkWebsite link
uaDevice user agent code
ipIP address
masterWhether the commenter is the site owner
urlRelative path from the homepage
hrefAbsolute path of the current location when the comment was sent
commentComment content
isSpamWhether it is spam
createdCreation timestamp
updatedUpdate timestamp
avatarAvatar link
topWhether it is pinned

After editing, go to the database of your Twikoo comments—for example, my MongoDB Cloud—and delete the comment item.

Of course, you can use a better method as long as the comment item is eventually deleted…

Once you’ve finished deleting, follow the above Restoring Comment Data steps and the modification is complete.