@@ -28,4 +28,7 @@ function jsonOut (name, data) {
JSON.stringify(data))
}
-main()
+main().then(() => process.exit(0)).catch(e => {
+ console.log(e)
+ process.exit(-1)
+})
@@ -9,4 +9,7 @@ async function main () {
console.log('[100%] 数据抓取完成!')