# 如何获取Discord信息以进一步进行分析 **Published by:** [tovarishch.eth](https://paragraph.com/@tovarishch/) **Published on:** 2022-07-30 **URL:** https://paragraph.com/@tovarishch/discord ## Content Discord作为目前DAO主要的承载平台,其中沉淀了大量的文本数据,可以作为对DAO进行分析的数据集。 DiscordChatExporter是一款轻量的方便获取相关文本和交互信息的工具。其可以获得发言的用户、时间、话语和点赞等信息。它其实是一个爬虫工具,模拟了用户去逐条浏览复制的过程,所以它只能获取用户加入了的,可以查看到的服务器信息。使用教程1.如果是mac使用,首先需要安装.NET Runtime v6 • .NET Runtime v6 for macOS x64 • .NET Runtime v6 for macOS Arm64 2. 获得自己discord的token token是我们登录discrod的用户名和密码的另一种表达方式,获取方式是: a.用网页登录discord b.打开chrome的开发者工具,选择network,然后刷新 c.输入/api,选择任何一个项目,在详细内容中找到authorization后面的字符串,这就是我们的用户名和密码对应的token(这个token一定不能外泄)3.我们以获取SeeDAO的文本为例,我们需要获得SeeDAO服务器的ID,操作如图4.用终端进入DiscordChatExporter文件夹,输入如下指令: dotnet DiscordChatExporter.Cli.dll exportguild -t 我们的token -g SeeDAO服务器的ID -f csv然后等待就可以了命令和参数说明PS:公开数据分析,应只用于研究或以增强社会福祉为目的的开发。同时,请注意用户信息隐私问题。 Reference: https://github.com/Tyrrrz/DiscordChatExporter ## Publication Information - [tovarishch.eth](https://paragraph.com/@tovarishch/): Publication homepage - [All Posts](https://paragraph.com/@tovarishch/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@tovarishch): Subscribe to updates - [Twitter](https://twitter.com/c_hongzhou): Follow on Twitter