添加汇率 scraper

This commit is contained in:
cheney
2026-04-25 12:16:41 +08:00
parent 75a2ec7d30
commit b61cf9628e
2 changed files with 247 additions and 0 deletions
+13
View File
@@ -4,3 +4,16 @@
- 数据主要是放各种经济数据和图表。
- 策略是放按照经济理论组织的相关数据和图表的对比。
## 爬虫
- 基于 bun 的定时任务
- 统一获取接口
- 统一爬取接口
```
async function fetch(startDate = null, endDate = null)
async function trigger(startDate = null, endDate = null)
```
不传递startDate和endDate,默认,默认获取最近30天的数据。
fecher 负责从目标网站获取原始数据
scraper 负责检查数据库中的数据是否完整,调用 fecher 将数据存储到数据库。