Skip to content

Commit

Permalink
Update scraper.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Mraleksa committed May 7, 2018
1 parent 4c04f93 commit 5a1d39b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.js
Expand Up @@ -12,7 +12,7 @@ const collection = db.get('database')



var start = "2017-09-01T00:00:00.414188+03:00"
var start = "2017-09-06T15:35:37.352273+03:00"
var array = [];
var next = 0;
console.log(start)
Expand Down Expand Up @@ -235,7 +235,7 @@ axios.get('https://public.api.openprocurement.org/api/2.3/contracts?offset='+sta

})
.then(function () {
if (next<100){setTimeout(function() {piv ();},5000);}
if (next<500){setTimeout(function() {piv ();},5000);}
else {setTimeout(function() {console.log("stop");db.close();},50000); }
});

Expand Down

0 comments on commit 5a1d39b

Please sign in to comment.