newsnow/scripts/refresh.ts
2024-10-19 15:10:56 +08:00

12 lines
256 B
TypeScript

import { sources } from "../shared/sources"
import { delay } from "../shared/utils"
async function main() {
for (const id of Object.keys(sources)) {
await delay(100)
fetch(`https://newsnow.busiyi/api/s/${id}`)
}
}
main().catch(console.error)