当前位置:网站首页>QQ情话糖果情话内容获取并保存
QQ情话糖果情话内容获取并保存
2022-06-25 14:38:00 【文明_code】
1.下载夜神模拟器,打开应用商店下载xposed和qq,xposed里面安装trustmealready



2.打开模拟器里面的wifi设置代理,电脑fiddler抓包
设置代理方法
1.电脑打开fiddler
2.打开手机wifi,确保电脑和手机wifi连接的是同一个
3.然后WiFi修改设置代理改为手动
4.设置主机名和端口号
6.手机端访问主机名加端口号,例如:http://255.255.5.255:8888/,点击下载fiddler ca证书进行安装,安卓高版本需要下载到本地,然后自己打开设置找到证书下载的地方安装,安卓低版本可以直接安装,但是要设置密码什么的
5.安装完证书即可设置代理成功,然后就可以愉快的抓包了
如何获取主机名和端口号?
电脑使用Win +r 键,输入cmd,回车,然后输入ipconfig,回车,找到 IPv4 地址,那个便是主机名了,端口fiddler默认为8888
3.开始抓包,手机QQ登陆好,点开情侣空间-情话糖果,多刷新几次就进去了,fidder做好准备抓包,最后抓到如下链接



4.上python代码如下,直接对这个链接进行get,使用json模块解析并保存到文档中
import requests,time,json#安装好对应的库
url="https://qqmp.welove520.com/v1/sweet_mp/love_words/recommend?access_token=替换成你的"
response = 200
Save_Count=0
Repeat_Count=0
Break_Flag=0
while(response == 200):
Get_data=requests.get(url)
response=Get_data.status_code
# json转字典
Return_Json=Get_data.text
Dict_Json=json.loads(Return_Json)
for index in range(3):
Love_Sen=Dict_Json["list"][index]["content"]+'\n'
#如果报错可以试试吧gbk换成utf-8 ,这里可以换成自己的路径
with open("love.txt","r",encoding="gbk") as f:
if(Love_Sen not in f.read()):
with open("love.txt","a") as f:
f.write(Love_Sen)
Save_Count=Save_Count+1
Repeat_Count=0
elif(Repeat_Count>100):
#Repeat_Count当获取到的情话连续重复了100次那么这个api的情话基本就耗尽了
print(f"api耗尽,程序结束,共保存了{Save_Count}条")
Break_Flag=1
break
else:
Repeat_Count += 1
print(f"重复了,连续重复次数为:{Repeat_Count}",Love_Sen)
print(f"保存的第{Save_Count}条","休息5s")
time.sleep(5)
if(Break_Flag):
break
zz(141条消息) 情话糖果句子-400多条-其它文档类资源-CSDN文库
这是我爬下来的400多条句子,不知道会不会更新,大家可以直接用,也可以自己爬
本资源仅供学习交流,任何问题与作者无关,如有侵权请联系删除
边栏推荐
- 【世界历史】第一集——石器时代的人们
- Logistic Regression VS Linear Regression
- JS floating point multiplication and division method can not accurately calculate the problem
- 2020-03-20
- Haven't you understood the microservice data architecture transaction management +acid+ consistency +cap+base theory? After reading it, you can completely solve your doubts
- Complete and detailed compilation of experimental reports
- NBD Network Block Device
- Remove interval (greedy)
- Uniapp icon configuration
- Native JS obtains form data and highlights and beautifies JSON output display
猜你喜欢

Gif动画怎么在线制作?快试试这款gif在线制作工具

分享自己平时使用的socket多客户端通信的代码技术点和软件使用

shell 内置命令

Ideal L9 in the eyes of the post-90s: the simplest product philosophy, creating the most popular products

JVM uses tools to analyze classic cases of OOM

'NVIDIA SMI' is not an internal or external command, nor is it a runnable program or batch file

JVM 用工具分析OOM经典案例
![[Ocean University of China] information sharing for the first and second examinations of postgraduate entrance examination](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[Ocean University of China] information sharing for the first and second examinations of postgraduate entrance examination

程序員為什麼要軟一點?

Reading the "clean" series for the first time, I didn't think it was a good book
随机推荐
Let and const commands
Variables, scopes, and variable promotion
golang项目依赖管理工具go vendor,go mod
【Try to Hack】vulhub靶场搭建
Uniapp icon configuration
laravel8实现图片验证码
Installation and removal of MySQL under Windows
Kubernetes cluster construction of multiple ECS
[deep learning] multi label learning
使用sphinx根据py源文件自动生成API文档
Cool assembly tutorial - concise x86 assembly language tutorial (1)
Classifier and cross entropy loss function
还没弄明白微服务数据架构事务管理+ACID+一致性+CAP+BASE理论吗,看完彻底解决疑惑
[Ocean University of China] information sharing for the first and second examinations of postgraduate entrance examination
Renix perf: detailed explanation of IP network performance test tools and test case parameters
Complete and detailed compilation of experimental reports
Deploy eve-ng with KVM virtualization
程序員為什麼要軟一點?
Haven't you understood the microservice data architecture transaction management +acid+ consistency +cap+base theory? After reading it, you can completely solve your doubts
Native JS obtains form data and highlights and beautifies JSON output display