1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
nuclear_data_spider/index.js

11 lines
307 B
JavaScript

const schedule = require('node-schedule')
const { run } = require('./spider/spider')
const { serve } = require('./backend/server')
// 每日 11:11 23:11 执行采集
schedule.scheduleJob('11 11 11,23 * * *', run)
// 启动后端服务
serve()
console.log('项目后端及定时采集已启动')