获取实时反诈最新动态/案例
2023-06-13 09:13:09 时间
转载请注明出处:小锋学长生活大爆炸[xfxuezhang.blog.csdn.net] 请勿用于非法用途!
目录
想搜集会动态更新的诈骗案例,用于做反诈宣传脚本,但网上都是诈骗静态帖子,没有会更新的。所以,瞄准了“国家反诈APP”,哈哈。做得挺好的!
宣传页链接
https://fzapph5.gjfzpt.cn/#/spread/spreadList
第一页帖子链接
https://oss.gjfzpt.cn/preventfraud-static/h5/list/1-1/1-1-1.json
其他页面链接
请自行抓包获取。
示例使用代码
import pyshorteners
import requests
import time
# 存储上一次查询的结果
antispoofing_store = []
def antiSpoofing():
url = 'https://oss.gjfzpt.cn/preventfraud-static/h5/list/1-1/1-1-1.json'
res = requests.get(url).json()
lists = res['list']
content = ''
max_item = 3
for item in lists[:max_item]:
id = item['id']
title = item['title']
localFilePath = item['localFilePath']
releaseTime = item['releaseTime']
if id in antispoofing_store:
continue
else:
if len(antispoofing_store) >= max_item:
antispoofing_store.pop(0)
antispoofing_store.append(id)
# 生成短链
localFilePath = pyshorteners.Shortener().clckru.short(localFilePath)
content += f'☠【{title}】——[{releaseTime}]\n☛{localFilePath}☚\n\n'
if content:
print('>> 无更新')
return content.strip()
# --------------------------------- #
antiSpoofing()
time.sleep(2)
antiSpoofing()
相关文章
- JavaScript案例:简单留言发布
- 大牛带你实时解读微服务架构改造案例:天气预报系统的架构设计
- 案例分享——低压电力线载波通信模组(借助电源线实现远距离数据传输、宽压输入、波特率范围广、应用场景多样化)
- 干货 | 携程酒店实时数仓架构和案例
- ZETA预测性维护方案入围“2022工业数智化优秀案例”榜单
- mybatis使用in语句,拼接逗号的使用、拼接sql语句实现批量插入、批量更新的案例处理
- 安全智能分析系列(二)| 实操案例,带你“玩转”SecXOps
- Cisco MSTP配置案例
- 【数字信号处理】线性时不变系统 LTI “ 输入 “ 与 “ 输出 “ 之间的关系 ( 线性卷积计算案例二 | 计算 卷积 )
- 【CSS】盒子模型案例 ( 盒子模型尺寸计算 | 盒子模型水平居中 | 盒子模型内外边距设置 | 背景图片及位置设置 | 盒子嵌套设置 )
- 隐写 小案例详解程序员
- [javaEE] 三层架构案例-用户模块(一)详解编程语言
- LVS实战案例:LVS-DR模式单网段案例
- Redis实战:25个应用案例(redis应用案例)
- Oracle 实现实时应用的示范(oracle 使用案例)