If you find this useful, please consider supporting my work with a donation.
Node.js-based utility for exporting your Disqus comments into a JSON file.
- Node.js v18+
- A Disqus API key (create a Disqus API Application)
Note: Set up an environment variable called DISQUS_API_KEY
that contains your Disqus API key before running the CLI.
This package is intended to be used on the command line. The easiest way to do that is using npx
:
npx @humanwhocodes/disqus-export forum-name
Where forum-name
is the ID of your forum on Disqus.
By default, the CLI will output your data into a file named forum-name-export.json
in your current working directory. You can change the output filename by passing in the -o
argument:
npx @humanwhocodes/disqus-export forum-name -o out.json
You can also install and run locally. When running locally, you can use the shorter CLI name that omits the package scope (disqus-export
instead of @humanwhocodes/disqus-export
):
npm i @humanwhocodes/disqus-export
npx disqus-export forum-name
Apache 2.0
- Exporting Disqus comments and adding them to Eleventy by Raymond Camden