This tool is only for learning and technical research and may not be used for any commercial or illegal activities, otherwise you will be responsible for the consequences.
The author of this tool does not make any express or implied warranty as to the safety, completeness, reliability, validity, correctness or applicability of this tool, nor any direct or indirect losses or damages resulting from the use or misuse of this tool. any liability, claim, demand or proceeding.
The author of this tool reserves the right to modify, update, delete, or discontinue this tool at any time without prior notice or obligation.
Users of this tool should abide by relevant laws and regulations, respect QQ's copyright and privacy, and must not infringe the legitimate rights and interests of QQ or other third parties, or engage in any illegal or unethical behavior.
When users of this tool download, install, run or use this tool, they are deemed to have read and agreed to this disclaimer. If you have any objection, please stop using this tool immediately and delete all related files.
This project obtains all the comments posted under the account by obtaining the historical message list of QQ space (of course, you cannot obtain the comments that are not in the message list, such as some comments that are only visible to you)
The main implementation is to obtain the historical message list by simulating login to QQ space, then perform data analysis, and finally store the crawled information in the /resource/result directory.
Since I am not very familiar with python programming, there are many omissions in the code. You can improve the code through your own ideas.
project/
├── resource/ # 资源目录
│ ├── config/ # 配置目录,文件保存位置配置
│ │ └── config.ini
│ ├── result/ # 导出结果的目录,格式为“你的qq.xlsx”
│ │ ├── ...
│ │ └── ...
│ ├── temp/ # 缓存目录
│ │ ├── ...
│ │ └── ...
│ ├── user/ # 用户信息
│ │ ├── ...
│ │ └── ...
├── util/ # 单元工具目录
│ ├── ConfigUtil.py # 读取配置
│ ├── GetAllMomentsUtil.py # 获取未删除的所有说说
│ ├── LoginUtil.py # 登录相关
│ ├── RequestUtil.py # 请求数据相关
│ └── ToolsUtil.py # 工具
├── main.py # 主程序入口
├── fetch_all_message.py # 主程序入口
├── README.md # 项目说明文件
├── requirements.txt # 依赖项列表
└── LICENSE # 许可证文件
# 克隆储存库
git clone https://github.com/LibraHp/GetQzonehistory.git
# 打开目录
cd GetQzonehistory
# 创建名为 myenv 的虚拟环境
python -m venv myenv
# 激活虚拟环境。在终端或命令提示符中运行以下命令:
# 对于 Windows:
myenv S cripts a ctivate
# 对于 macOS/Linux:
source myenv/bin/activate
# 安装依赖
pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
# 运行脚本
python main.py
# 克隆储存库
git clone https://github.com/LibraHp/GetQzonehistory.git
# 打开目录
cd GetQzonehistory
# 安装依赖
pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
# 运行脚本
python main.py
The login method refers to python-QQ space scan code login.