I currently moving my comments system back to default WordPress comments. I was using Disqus before but I decided to move back. Disqus provides a tool that you can export all your comments but unfortunately, they will provide you with XML format. The worst thing is WordPress only reads WXR file format.
My solution to this is i should manually rewrite what Disqus gave me (I mean the XML file i exported from disqus) to WordPress WXR file format. My problem is that I don’t know what is the basic structure of the WordPress comments required.
You can view the Disqus Exported XML file here!
My only concern here is i just need a template or format which I can follow on how to write a correct WXR file comments so that I can import it directly in my WordPress using the Import Tool. By the way, when I try to upload the XML file to WordPress, I get this error:
Invalid file. Please upload a valid Disqus export file.”
The Disqus WordPress plugin includes a sync feature which will sync your comments from Disqus back to your WordPress installation. It can be located on the Advanced Options tab inside the plugin.
Instead of trying to generate a WXR file format it may be easier to parse the Disqus XML file and insert the comments you extract from there directly to the wp_comments table in your wordpress database. At least this way you have better control of the process.
The above plug-in may not work because Disqus changes from time to time the export format (strangely you cannot even use the exported file to import your comments back to Disqus again).
For my service I had to rewrite already twice the parser to adapt it to the small but annoying variations of Disqus XML
Did you take a look at this plugin?
http://wordpress.org/extend/plugins/disqus-comments-importer/
It looks limited but maybe a good starting point.
i have the same problem with importing disqus comment to my new website.
Recently i figured out some way to do the parsing and insert the comments into wordpress database, all is written only in PHP please refer to this this link, any feedback is welcome
here is the code