Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 80 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,72 +1,107 @@
# EverydayNews V2
> 项目重制了,旧项目的备份位于[RavelloH/news-archive](https://github.com/RavelloH/news-archive)

新版的EverydayNews,存储2022/06/04至今的所有每日60s新闻,以JSON格式存放,每日更新,自带搜索功能,可RSS订阅。
预览:[https://ravelloh.github.io/EverydayNews](https://ravelloh.github.io/EverydayNews)
国内加速地址:[https://news.ravelloh.top](https://news.ravelloh.top)
> 项目重制了,旧项目的备份位于 [RavelloH/news-archive](https://github.com/RavelloH/news-archive)

![image](https://github.com/user-attachments/assets/d6189b72-f5ff-4f2b-a31f-53e5277d7921)
[![GitHub stars](https://img.shields.io/github/stars/RavelloH/EverydayNews?style=social)](https://github.com/RavelloH/EverydayNews/stargazers)
[![GitHub last commit](https://img.shields.io/github/last-commit/RavelloH/EverydayNews)](https://github.com/RavelloH/EverydayNews/commits/main)
[![License](https://img.shields.io/github/license/RavelloH/EverydayNews)](LICENSE)

> 新版的 EverydayNews,存储 2022/06/04 至今的所有每日 60s 新闻,以 JSON 格式存放,每日更新,自带搜索功能,可 RSS 订阅。

大幅简化了页面,你可以使用查询参数自定义页面:
- date: https://ravelloh.github.io/EverydayNews?date=20230101
- style: https://ravelloh.github.io/EverydayNews?style=clean
- footer: https://ravelloh.github.io/EverydayNews?footer=none
- color: https://ravelloh.github.io/EverydayNews?backgroundColor=111111&textColor=ffffff
## ✨ 功能特点

例如:
- 简化布局: https://ravelloh.github.io/EverydayNews?style=clean
- 仅显示新闻: https://ravelloh.github.io/EverydayNews?style=clean&footer=none
- 暗色模式: https://ravelloh.github.io/EverydayNews?style=clean&backgroundColor=111111&textColor=ffffff
| 功能 | 说明 |
|------|------|
| 📅 **历史数据** | 2022/06/04 至今完整数据 |
| 🔍 **全文搜索** | 内置静态搜索工具 |
| 📡 **RSS 订阅** | 支持 RSS 格式订阅 |
| 🌐 **多语言支持** | 中文 + 国际访问 |
| 🔄 **每日自动更新** | GitHub Actions 自动抓取 |

非常适合使用iframe挂载(亮色/暗色)
```html
<iframe src="https://ravelloh.github.io/EverydayNews?style=clean" width="600" height="800" frameborder="0"></iframe>
## 🚀 快速开始

### 在线预览

- 🌐 主站: [https://ravelloh.github.io/EverydayNews](https://ravelloh.github.io/EverydayNews)
- 🇨🇳 国内加速: [https://news.ravelloh.top](https://news.ravelloh.top)

### 自定义参数

| 参数 | 说明 | 示例 |
|------|------|------|
| `date` | 指定日期 | `?date=20230101` |
| `style` | 布局风格 | `?style=clean` |
| `footer` | 页脚显示 | `?footer=none` |
| `backgroundColor` | 背景色 | `&backgroundColor=111111` |
| `textColor` | 文字色 | `&textColor=ffffff` |

### 使用示例

**简化布局**
```
https://ravelloh.github.io/EverydayNews?style=clean
```

```html
<iframe src="https://ravelloh.github.io/EverydayNews?style=clean&backgroundColor=111111&textColor=ffffff" width="600" height="800" frameborder="0"></iframe>
**暗色模式 + 无页脚**
```
https://ravelloh.github.io/EverydayNews?style=clean&backgroundColor=111111&textColor=ffffff&footer=none
```
你也可以在上面链接最后加入`&footer=none`来去除页脚:

**嵌入 iframe(亮色)**
```html
<iframe src="https://ravelloh.github.io/EverydayNews?style=clean&footer=none" width="600" height="800" frameborder="0"></iframe>
<iframe src="https://ravelloh.github.io/EverydayNews?style=clean"
width="600" height="800" frameborder="0"></iframe>
```

**嵌入 iframe(暗色)**
```html
<iframe src="https://ravelloh.github.io/EverydayNews?style=clean&backgroundColor=111111&textColor=ffffff&footer=none" width="600" height="800" frameborder="0"></iframe>
<iframe src="https://ravelloh.github.io/EverydayNews?style=clean&backgroundColor=111111&textColor=ffffff"
width="600" height="800" frameborder="0"></iframe>
```

## API
与v1相同,仍提供API用于获取某日期的新闻:
- 最新:
- `https://ravelloh.github.io/EverydayNews/latest.json`
- `https://news.ravelloh.top/latest.json`
- 特定日期:
- `https://ravelloh.github.io/EverydayNews/data/YYYY/MM/DD.json`
- `https://news.ravelloh.top/data/YYYY/MM/DD.json`
- 例: `https://news.ravelloh.top/data/2025/01/01.json`

内容格式:
```json
## 📡 API 接口

### 获取最新新闻
```bash
curl https://ravelloh.github.io/EverydayNews/latest.json
curl https://news.ravelloh.top/latest.json
```

### 获取指定日期
```bash
curl https://news.ravelloh.top/data/2025/01/01.json
```

### 返回格式
```json
{
"date": "2025/01/01",
"content": [
"xxxxxxxxxx",
"xxxxxxxxxx",
"xxxxxxxxxx",
"新闻内容1...",
"新闻内容2..."
]
}
```

## RSS
RSS订阅地址:
- `https://ravelloh.github.io/EverydayNews/rss.xml`
- `https://news.ravelloh.top/rss.xml`
## 🔗 RSS 订阅

| 订阅源 | 地址 |
|--------|------|
| GitHub Pages | `https://ravelloh.github.io/EverydayNews/rss.xml` |
| 国内镜像 | `https://news.ravelloh.top/rss.xml` |

## 🛠️ 技术栈

| 技术 | 用途 |
|------|------|
| [vikiboss/60s](https://github.com/vikiboss/60s) | 数据来源 |
| [RavelloH/index-search](https://github.com/RavelloH/index-search) | 静态搜索 |
| GitHub Actions | 每日自动更新 |

## 依赖
目前正在使用 [vikiboss/60s](https://github.com/vikiboss/60s) 作为数据源,
使用 [RavelloH/index-search](https://github.com/RavelloH/index-search)作为静态搜索工具,
使用Github Actions进行每日更新。
## 📄 License

本项目基于 MIT License 开源。

---

README optimized with [Gingiris README Generator](https://gingiris.github.io/github-readme-generator/)