Cleaning up disqus comments #784
hamoid
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed the comments imported from disqus into isso contain a lot of html, so I plan to clean them up.
I created this small script to edit one comment:
It needs a recent version of sqlite3, otherwise readfile() is not available.
It can be used in combination with searches, for instance
sqlite3 my-isso-file.db "SELECT id,text FROM comments WHERE text LIKE '%problem%'"
, to find some kind of problematic text, then you type./edit-comment ID
using the returned ID to edit the comment in vim.Probably before going into editing single comments I'll try using pandoc to convert all HTML in the comments to Markdown. Usage:
cat .comment-edit | pandoc --from=html --to=markdown --no-wrap
.Beta Was this translation helpful? Give feedback.
All reactions