16 February 2009
updated 16 February 2009
Importing comments from Mephisto into Disqus
To import my old Marley comments into Disqus, I used Locomotivation’s handy Sinatra Disqus Importer. It’s a super-simple Sinatra app that takes an RSS feed of your existing blog posts and comments and uses that to feed the comments into Disqus using it’s API.
I wanted to do the same for all of my old Mephisto-powered blog comments. Doing this was fairly trivial, it just required a script to take the content from the Mephisto database and spit out an RSS feed that I could use with the Sinatra importer. Having imported a mysql dump from my server into my local MySQL database, I was able to use ActiveRecord and Builder to generate the RSS feed; here’s the code in case it’s of any use to anybody. It’s a bit rough and you might need to tweak it a bit but it does the job.