聚合多个网站的 RSS,定时抓取并存入本地 JSON 文件,对外提供公开的 JSON 接口。
接口地址:https://fc.chario.cn/api/articles.php
| 参数 | 说明 | 默认 |
|---|---|---|
| limit | 每页数量(最大 500) | 50 |
| offset | 分页偏移量 | 0 |
| keyword | 按标题关键字过滤 | 无 |
| site | 按站点名称过滤 | 无 |
请求示例:
// 获取最新 20 篇 https://fc.chario.cn/api/articles.php?limit=20 // 搜索标题含 "PHP" 的文章 https://fc.chario.cn/api/articles.php?keyword=PHP // 指定站点 + 分页 https://fc.chario.cn/api/articles.php?site=示例站&limit=10&offset=0
返回格式:
{
"code": 0,
"message": "ok",
"data": {
"updated": "2026-10-20 12:00:00",
"total": 356,
"count": 20,
"limit": 20,
"offset": 0,
"articles": [
{
"site_name": "示例站",
"site_url": "https://example.com",
"title": "文章标题",
"link": "https://example.com/post/1",
"description": "文章摘要……",
"author": "作者",
"categories": ["分类A"],
"pub_time": "2026-10-20 10:00:00",
"timestamp": 1792000000
}
]
}
}
抓取脚本:https://fc.chario.cn/cron/fetch_rss.php
// Linux crontab(每 10 分钟) *\/10 * * * * php /www/wwwroot/fc.chario.cn/cron/fetch_rss.php // 网页定时服务(需带 token) https://fc.chario.cn/cron/fetch_rss.php?token=你的CRON_TOKEN
详见 README.md。