File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11# htmldumper
2- HTML dump script for Parsoid HTML
2+ Parsoid HTML dump script for RESTBase APIs like https://rest.wikimedia.org/ .
33
44## Installation
55
@@ -11,13 +11,13 @@ HTML dump script for Parsoid HTML
1111Usage: node ./htmldumper
1212Example: node htmldumper.js --domain en.wikipedia.org \
1313 --ns 0 --apiURL http://en.wikipedia.org/w/api.php \
14- --host https://rest.wikimedia.org -- saveDir /tmp
14+ --saveDir /tmp
1515
1616Options:
1717 --apiURL [required]
1818 --domain [required]
1919 --ns [required]
20- --host [required]
20+ --host [required] [default: "http://rest.wikimedia.org"]
2121 -d, --saveDir [default: no saving]
2222```
2323
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ function makeDump (options) {
222222if ( module . parent === null ) {
223223 var argParser = require ( 'yargs' )
224224 . usage ( 'Create a HTML dump in a subdir\nUsage: $0'
225- + '\nExample:\nnode htmldumper.js --domain en.wikipedia.org --ns 0 --apiURL http://en.wikipedia.org/w/api.php --host http://rest.wikimedia.org ' )
225+ + '\nExample:\nnode htmldumper.js --domain en.wikipedia.org --ns 0 --apiURL http://en.wikipedia.org/w/api.php' )
226226 . demand ( [ 'apiURL' , 'domain' , 'ns' , 'host' ] )
227227 . options ( 'h' , {
228228 alias : 'help'
@@ -231,11 +231,11 @@ if (module.parent === null) {
231231 . options ( 'd' , {
232232 alias : 'saveDir' ,
233233 default : ''
234- } ) ;
234+ } )
235235 //.default('apiURL', 'http://en.wikipedia.org/w/api.php')
236236 //.default('prefix', 'en.wikipedia.org')
237237 //.default('ns', '0')
238- // .default('host', 'http://rest.wikimedia.org');
238+ . default ( 'host' , 'http://rest.wikimedia.org' ) ;
239239
240240 var argv = argParser . argv ;
241241 if ( argv . h ) {
You can’t perform that action at this time.
0 commit comments