# State of disqus to discourse importer

**URL:** https://meta.discourse.org/t/state-of-disqus-to-discourse-importer/73844
**Category:** WordPress
**Created:** [2017 年 11 月 10 日午後 6:03 UTC](https://meta.discourse.org/t/state-of-disqus-to-discourse-importer/73844 "2017-11-10T18:03:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [2017 年 11 月 10 日午後 6:03 UTC](https://meta.discourse.org/t/state-of-disqus-to-discourse-importer/73844/1 "2017-11-10T18:03:58Z")

</div>

I am trying to migrate my comments from disqus to discourse and came across these comments  
[https://meta.discourse.org/t/migrating-from-disqus-to-discourse-for-static-blog-comments/19947/22?u=quintin\_par](https://meta.discourse.org/t/migrating-from-disqus-to-discourse-for-static-blog-comments/19947/22)  
I couldn’t find the importer at  
[https://github.com/discourse/discourse/blob/master/lib/tasks/disqus.thor](https://github.com/discourse/discourse/blob/master/lib/tasks/disqus.thor)  
Those posts were in 2014 and the last topic on this is 2016 if I am not wrong  
[https://meta.discourse.org/t/disqus-import-script/38750](https://meta.discourse.org/t/disqus-import-script/38750)

Is the importer still active?

---

<div class="post-metadata">

### Author: ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)
#### Post date: [2017 年 11 月 10 日午後 6:09 UTC](https://meta.discourse.org/t/state-of-disqus-to-discourse-importer/73844/2 "2017-11-10T18:09:24Z")

</div>

Looks like the Disqus importer moved in with the other importers:

> <https://github.com/discourse/discourse/blob/5012d46cbd3bcf79b7351f7d2d41003496a796c5/script/import_scripts/disqus.rb>

---

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [2017 年 11 月 10 日午後 6:14 UTC](https://meta.discourse.org/t/state-of-disqus-to-discourse-importer/73844/3 "2017-11-10T18:14:39Z")

</div>

Thanks @awole20.

Does this mean, the commands to run this has changed?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2017 年 11 月 10 日午後 6:24 UTC](https://meta.discourse.org/t/state-of-disqus-to-discourse-importer/73844/4 "2017-11-10T18:24:20Z")

</div>

You would run it like

```
ruby script/import_scripts/discus.rb

```

Glancing at it, it doesn’t support uploads, avatars, or 301 redirects. It puts everything in a single category (perhaps that’s how Discus works).

---

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [2017 年 11 月 10 日午後 9:03 UTC](https://meta.discourse.org/t/state-of-disqus-to-discourse-importer/73844/5 "2017-11-10T21:03:09Z")

</div>

Hi @pfaffman,

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/a/fa0e91fcfc3c2334bb70cb38c23b22492f428b3c.png)  
I was unable to get to the script folder. What am I doing wrong here?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2017 年 11 月 10 日午後 11:40 UTC](https://meta.discourse.org/t/state-of-disqus-to-discourse-importer/73844/6 "2017-11-10T23:40:38Z")

</div>

You need to install a development environment.

---

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [2017 年 11 月 11 日午前 2:43 UTC](https://meta.discourse.org/t/state-of-disqus-to-discourse-importer/73844/7 "2017-11-11T02:43:57Z")

</div>

Is this how I should setup the dev environment?

> [@Install Discourse on Ubuntu or Debian for Development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727/):
>
> warning This guide covers installation instructions in a development environment. For a production guide see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on Ubuntu or Debian to hack on and develop with? We’ll assume that you work locally and don’t have Ruby/Rails/Postgres/Redis installed on your Ubuntu or Debian system. Let’s begin! Requirements We suggest having at least 4 GB RAM and 2 CPU cores. Current compatibility: O…

I am a bit surprised here because comments like this

> [@Import Wordpress comments through Disqus](https://meta.discourse.org/t/import-wordpress-comments-through-disqus/31666):
>
> Hi, I try to migrate my WordPress comments to Discourse. I’ve read a lot about that, and I saw I need to transit my comments through Disqus to do that, because imports script don’t work with WP at this time. I’ve installed Discourse with DigitalOcean and [the 30 min install](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md). Well, [inspired by this tutorial](http://www.railsonmaui.com/blog/2014/09/27/updating-to-jekyll-2-and-discourse-for-comments/), I’ve tried to import my xml from Disqus. First : $ RAILS\_ENV=production bundle exec thor disqus:import --file=irz.xml --post-as=disqus --dry-run Could not find command "disqus:import". Ok…

and  
[http://www.railsonmaui.com/blog/2014/09/27/updating-to-jekyll-2-and-discourse-for-comments/](http://www.railsonmaui.com/blog/2014/09/27/updating-to-jekyll-2-and-discourse-for-comments/)

don’t mention setting up env.
