# 如何获取Discord信息以进一步进行分析

By [tovarishch.eth](https://paragraph.com/@tovarishch) · 2022-07-30

---

Discord作为目前DAO主要的承载平台，其中沉淀了大量的文本数据，可以作为对DAO进行分析的数据集。

[DiscordChatExporter](https://github.com/Tyrrrz/DiscordChatExporter/releases/download/2.35/DiscordChatExporter.Cli.zip)是一款轻量的方便获取相关文本和交互信息的工具。其可以获得发言的用户、时间、话语和点赞等信息。它其实是一个爬虫工具，模拟了用户去逐条浏览复制的过程，所以它只能获取用户加入了的，可以查看到的服务器信息。

使用教程
----

**1.如果是mac使用，首先需要安装.NET Runtime v6**

• [.NET Runtime v6 for **macOS x64**](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-6.0.6-macos-x64-installer)

• [.NET Runtime v6 for **macOS Arm64**](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-6.0.6-macos-arm64-installer)

**2\. 获得自己discord的token**

token是我们登录discrod的用户名和密码的另一种表达方式，获取方式是：

a.用网页登录discord

b.打开chrome的开发者工具，选择network，然后刷新

c.输入/api，选择任何一个项目，在详细内容中找到authorization后面的字符串，这就是我们的用户名和密码对应的token（这个token一定不能外泄）

![](https://storage.googleapis.com/papyrus_images/bdd1c977574a74a794f9000d27937311241f1c2ad96099391a574fcfe48d8bb2.png)

**3.我们以获取SeeDAO的文本为例，我们需要获得SeeDAO服务器的ID，操作如图**

![](https://storage.googleapis.com/papyrus_images/be6946cb57efa6f289e2a221332fddefd3e241830864a45979d16e6f9d8cf358.png)

4.用终端进入DiscordChatExporter文件夹，输入如下指令：

`dotnet DiscordChatExporter.Cli.dll exportguild -t 我们的token -g SeeDAO服务器的ID -f csv`

![](https://storage.googleapis.com/papyrus_images/7e42550aa119159e3e1992976d592b424d9c390d23c4eec4fbd3bc55ee2029e1.png)

然后等待就可以了

命令和参数说明
-------

![](https://storage.googleapis.com/papyrus_images/f94c5540b4f15be534791e03ad1d596612e2dc4d5dad615791ad790fa3dbe44a.png)

![](https://storage.googleapis.com/papyrus_images/3d2db908196ca7a8f411d0194f3c510acd305b8ee53d53943000af655ad4bc82.png)

**PS：公开数据分析，应只用于研究或以增强社会福祉为目的的开发。同时，请注意用户信息隐私问题。**

**Reference：**

[https://github.com/Tyrrrz/DiscordChatExporter](https://github.com/Tyrrrz/DiscordChatExporter)

---

*Originally published on [tovarishch.eth](https://paragraph.com/@tovarishch/discord)*
