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.
16 lines
309 B
16 lines
309 B
|
3 weeks ago
|
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)
|
||
|
|
})
|