@@ -16,15 +16,39 @@ Example:
1616
1717Options:
1818 --apiURL [required]
19- --domain, --prefix [required]
2019 --ns [required]
21- --host [required] [default: "http://rest.wikimedia.org"]
20+ --host [required]
21+ --domain, --prefix [default: ""]
2222 -d, --saveDir [default: ""]
2323 -t, --startTitle [default: ""]
24+ -a, --userAgent [default: "HTMLDumper"]
2425 --db, --dataBase [default: ""]
2526 --verbose [default: true]
27+ -c, --concurrency [default: 50]
28+ -u, --url [default: "{{host}}/{{domain}}/v1/page/html/{title}/{oldid}"]
2629```
2730
31+ Parameters:
32+ - ** ` apiURL ` ** : The location of the Wiki's MW Action API end point.
33+ - ** ` ns ` ** : The namespace index to dump.
34+ - ** ` host ` ** : The host to send the dump requests to.
35+ - ** ` domain ` ** : If the host contains multiple domains, the one to reach.
36+ - ** ` saveDir ` ** : If saving the contents of the dump to a directory structure,
37+ this is the path to the root of the directory (see the following section).
38+ - ** ` startTitle ` ** : If resuming a Wiki dump, the article title to start with.
39+ - ** ` userAgent ` ** : The UserAgent header to use when sending requests. Default:
40+ ` HMTLDumper `
41+ - ** ` dataBase ` ** : If saving the contents to a SQLite3 database, the path to the
42+ file to save it to (see the next sections).
43+ - ** ` verbose ` ** : Be verbose.
44+ - ** ` concurrency ` ** : The number of parallel article fetches to do. Default:
45+ ` 50 ` .
46+ - ** ` url ` ** : The [ URL
47+ template] ( https://github.com/wikimedia/swagger-router#uri-templating ) to use
48+ when making requests for each article. The available parameters are: ` title ` ,
49+ ` oldid ` and all of the options that can be set on the command line (` host ` ,
50+ ` domain ` , etc.). Default: ` {{host}}/{{domain}}/v1/page/html/{title}/{oldid} `
51+
2852### Filesystem output
2953
3054With ` --saveDir ` as specified in the example above, a directory structure like
0 commit comments