Explorar el Código

Merge pull request #111 from Aaron00101010/master

refactor: update to latest data source host url
modood hace 3 años
padre
commit
58bbabf411
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/crawler.js

+ 1 - 1
lib/crawler.js

@@ -19,7 +19,7 @@ const casReg = /<tr class='.*?'><td><a href=.*?>(.*?)<\/a><\/td><td><a href=.*?>
 const vReg = /<tr class='.*?'><td>(.*?)<\/td><td>.*?<\/td><td>(.*?)<\/td><\/tr>/g
 
 const host = 'www.stats.gov.cn'
-const path = '/tjsj/tjbz/tjyqhdmhcxhfdm/2020/#{route}.html'
+const path = '/tjsj/tjbz/tjyqhdmhcxhfdm/2021/#{route}.html'
 
 /**
  * 抓取数据