如何从非拥有的不和谐服务器检索消息

How to retrieve messages from non-owned discord server

我正在编写用于文本分析和 Matlab 的代码,并希望根据搜索查询从不属于我的 discord 服务器获取消息。第一个问题?这可能吗?

其次:Python 中是否有关于如何做到这一点的好教程? (discord.py client.run() 即使在安装 nest_async 之后也给我一个 asyncio 错误)

非常感谢, 奥马尔

最好的方法是通过 Discord Web 和 Selenium

pip install selenium

设置 selenium 以转到 Discord Web,登录并在搜索字段中键入查询。使用BeautifulSoup解析它。