Searching.ton
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
462 B

import dotenv from "dotenv"
import path from "path"
dotenv.config({ path: path.resolve(__dirname, "../.env.local") })
import domainWatcher from './domain-watcher'
import parser from './parser'
const run = async()=>{
console.log('Start domain watcher')
await domainWatcher();
console.log('Start parser')
await parser();
}
const second = 1000;
const minute= 60 * second;
const hour = 60 * minute;
run();
setInterval(()=>{
run()
},3 * hour)