A billion Telegram messages about the 2024 US presidential election
收藏资源简介:
该数据集包含关于2024年美国总统选举的约4.9亿条Telegram消息,涉及约29,900个聊天群组,总大小约为850GB。数据集正在持续收集,预计到年底将收集约10亿条消息。数据集遵循CC BY-NC-SA 4.0许可协议,并要求用户在使用时引用相关论文。
This dataset contains approximately 490 million Telegram messages related to the 2024 United States Presidential Election, covering around 29,900 chat groups, with a total size of about 850 GB. The dataset is being continuously collected, and it is estimated that around 1 billion messages will be collected by the end of the year. This dataset is released under the CC BY-NC-SA 4.0 license, and users are required to cite the relevant papers when using it.
2024年美国总统选举相关Telegram消息数据集
数据集概述
- 数据集名称: 2024年美国总统选举相关Telegram消息数据集
- 数据集版本: v1
- 数据量: 约4.9亿条消息,约29,900个聊天记录,约850GB
- 数据集状态: 数据收集正在进行中,预计年底前收集约10亿条消息
数据集下载
数据使用协议
- 许可证: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License (CC BY-NC-SA 4.0)
- 引用要求: 使用数据集时需引用以下论文:
- Leonardo Blas, Luca Luceri, and Emilio Ferrara. Unearthing a Billion Telegram Posts about the 2024 U.S. Presidential Election: Development of a Public Dataset. 2024. https://doi.org/10.48550/arXiv.2410.23638.
数据处理指南
-
文件合并: 使用以下命令合并分割文件: bash cat scraped_part_* > scraped.tar.zst
-
文件解压: 使用以下命令解压合并后的文件: bash tar --use-compress-program=unzstd -xvf scraped.tar.zst
-
解压后文件大小: 解压后的
scraped文件夹约850GB -
额外解压: 部分Telegram对象在SQLite数据库中以JSON序列化、UTF-8编码和
zlib压缩存储,完全解压后可能占用三倍空间 -
建议: 如果存储空间有限,建议在运行时解压和分析Telegram对象,或使用
decompress.py解压.db文件
数据集特性
- 聊天记录排名: 使用
chats.db和get_top_chats.py脚本可确定前N个聊天记录,默认N为500
致谢
- 感谢: 感谢全球的种子下载者对数据集的镜像支持




