Files
schoolNews/schoolNewsCrawler/crawler/学习强国结构.md
2025-11-10 15:22:44 +08:00

47 lines
1.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 学习强国
## 搜索接口
GET https://search.xuexi.cn/api/search
### 入参
{
"size": 15, # 每页返回数量
"hid": "8rRCExvNOv8HUCnncajqG9x825v1u6a3", # 设备/会话ID
"client_version": "PC:0.0.9", # 客户端版本
"page": 1, # 页码
"query": "习近平", # 搜索关键词 (URL编码)
"program_id": 0, # 程序ID (0=全部)
"product_params": { # 产品参数 (JSON格式需URL编码)
"time_filter": "all", # 时间过滤: all/day/week/month/year
"type_filter": "all", # 类型过滤: all/news(图文)/picture(图集)/video(视频)/book(书籍)
"sort_method": "integrated", # 排序方式: integrated(综合)/time(时间)
"search_method": "all" # 搜索方式: all/title/content
},
"_t": 1762595495842 # 时间戳(毫秒)
}
### 返回数组内对象
{
"status": 0,
"message": "SUCCESS",
"data": {
"total": 919,
"pages": 20,
"list": []
}
}
{
"summary": "",
"image": [
"https://boot-img.xuexi.cn/image/1005/process/9cb21330294b46c780fd7a3a3d068e70.jpg"
],
"show_time": "9个月前",
"item_id": "5787654603241390445",
"biz_type": "15",
"program_id": "0",
"title": "法语版|<em>习近平</em>春节前夕赴辽宁看望慰问基层干部群众",
"type": "kFiles",
"url": "https://article.xuexi.cn/articles/pdf/index.html?art_id=5787654603241390445",
"publish_time": "2025-01-25",
"show_source": "“学习强国”学习平台",
"biz_id": "5787654603241390445",
"desc": ""
}