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.
15 lines
309 B
15 lines
309 B
const sqlite = require('./sqlite')
|
|
const worker = require('./worker')
|
|
|
|
async function main () {
|
|
await sqlite.init()
|
|
await worker.fetchVillages()
|
|
await worker.patch()
|
|
|
|
console.log('[100%] 数据抓取完成!')
|
|
}
|
|
|
|
main().then(() => process.exit(0)).catch(e => {
|
|
console.log(e)
|
|
process.exit(-1)
|
|
})
|
|
|