mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2025-12-13 06:39:47 +00:00
13 lines
228 B
TypeScript
13 lines
228 B
TypeScript
import nodeCron from "node-cron";
|
|
|
|
import { Scraper } from "./scraper";
|
|
|
|
const main = async () => {
|
|
nodeCron.schedule("* * * * *", async () => {
|
|
const scraper = new Scraper();
|
|
await scraper.scrape();
|
|
});
|
|
};
|
|
|
|
main();
|