Skip to content

humanwhocodes/disqus-export

Repository files navigation

Disqus Comment Exporter

by Nicholas C. Zakas

If you find this useful, please consider supporting my work with a donation.

Description

Node.js-based utility for exporting your Disqus comments into a JSON file.

Requirements

Usage

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

License

Apache 2.0

Prior Art