当前位置:网站首页>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多条句子,不知道会不会更新,大家可以直接用,也可以自己爬
本资源仅供学习交流,任何问题与作者无关,如有侵权请联系删除
边栏推荐
- Stream竟然还有应用进阶学习?作为程序员的你知道吗
- 两种方法实现pycharm中代码回滚到指定版本(附带截图展示)
- oracle数据库常用的函数总结
- JGG | overview of duhuilong group of Hebei University Research on plant pan genomics
- Two common ways for orcale to clear table data
- JS to verify whether the string is a regular expression
- 2020-03-20
- 现在股票开户用什么app最安全?知道的给说一下吧
- 分饼干问题
- Summary of common functions in Oracle Database
猜你喜欢

JVM 用工具分析OOM经典案例
![[untitled]](/img/7f/e2c9fbfb5eb6e7fcc6e23a46540933.jpg)
[untitled]

Thymeleaf Usage Summary

第一次读 “Clean” 系列,并没有觉得这是一本多好的书

Heavyweight! The domestic IDE is released and developed by Alibaba. It is completely open source! (high performance + high customization)

从0到1完全掌握 XSS

Application of TSDB in civil aircraft industry

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

shell 字符串变量

shell 变量 入门
随机推荐
H5 page graying source code, ie compatible (elegant downgrade provides download browser link)
Renix perf: detailed explanation of IP network performance test tools and test case parameters
【Try to Hack】vulhub靶场搭建
Kubernetes understands kubectl/ debugging
Two common ways for orcale to clear table data
【中國海洋大學】考研初試複試資料分享
Les neuf caractéristiques de la parole et les neuf temps en anglais
JS get the height and width corresponding to the box model (window.getcomputedstyle, dom.getboundingclientrect)
挖财是正规的吗?股票开户安全吗?
多张动图怎样合成一张gif?仅需三步快速生成gif动画图片
Remove interval (greedy)
Clinical chemistry | zhangjianzhong / Xu Jian develop single cell precision diagnosis and treatment technology for Helicobacter pylori
Shell string variable
Is it safe for tongdaxin to open a stock account
【深度学习】多标签学习
Experts' suggestions | 8 measures to accelerate your innovative career planning and growth
分饼干问题
定位position(5种方式)
The best time to buy and sell stocks
Logistic Regression VS Linear Regression