Skip to content

Commit

Permalink
finish 14000
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyq0826 committed Feb 6, 2019
1 parent 6a33c99 commit ee3f5e5
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 253 deletions.
7 changes: 4 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,13 @@ function pullTownDataSync() {
}

function pullVillageDataSync() {
let offset = 1
//6656
let offset = 13993
JSON.parse(fs.readFileSync(townPath)).slice(offset).forEach(function(element, index) {
// log.debug(element)
// throw Error("base");
let urls = [];
let url = element.url.replace('www.stats.gov.cn', IP);
log.debug(url);
log.debug(element)
if (url){
requestSync({
url: url,
Expand Down
2 changes: 1 addition & 1 deletion src/village.json

Large diffs are not rendered by default.

Loading

0 comments on commit ee3f5e5

Please sign in to comment.