Explorar el Código

feat: 数据抓取工作流

modood hace 7 años
padre
commit
b5773a68ca
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      lib/fetch.js

+ 12 - 0
lib/fetch.js

@@ -0,0 +1,12 @@
+const sqlite = require('./sqlite')
+const worker = require('./worker')
+
+async function main () {
+  await sqlite.init()
+  await worker.fetchVillages()
+  await worker.patch()
+
+  console.log('[100%] 数据抓取完成!')
+}
+
+main()