Skip to content

Commit e31f45d

Browse files
committed
Update to v1 API
1 parent 84ddaef commit e31f45d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

htmldumper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var fs = Promise.promisifyAll(require('fs'));
2020
var PromiseStream = require('./PromiseStream');
2121

2222
// Article dump parallelism
23-
var maxConcurrency = 30;
23+
var maxConcurrency = 50;
2424

2525
function getArticles (options, res) {
2626
var next = res.next || '';
@@ -124,7 +124,7 @@ function dumpArticle (options, title, oldid) {
124124
if (!checkResult) {
125125
console.log('Dumping', title, oldid);
126126
var url = 'http://' + options.host + '/' + options.prefix
127-
+ '/v1/page/' + encodeURIComponent(title) + '/html/' + oldid;
127+
+ '/v1/page/html/' + encodeURIComponent(title) + '/' + oldid;
128128
return preq.get({
129129
uri: url,
130130
headers: {

0 commit comments

Comments
 (0)