Download Wikipedia dump with NLP4J-wiki

Maven

    <!-- https://mvnrepository.com/artifact/org.nlp4j/nlp4j-wiki -->
    <dependency>
        <groupId>org.nlp4j</groupId>
        <artifactId>nlp4j-wiki</artifactId>
        <version>0.3.1.0</version>
    </dependency>

code

    MediaWikiDownloader dl = new MediaWikiDownloader();
    dl.setProperty("version", "20221201");
    dl.setProperty("outdir", "/usr/local/wiki/en/wiki/20221201");
    dl.setProperty("language", "en");
    dl.setProperty("media", "wiki");
    dl.crawlDocuments();

Result
Files
enwiki-20221201-md5sums.txt
enwiki-20221201-pages-articles-multistream.xml.bz2
enwiki-20221201-pages-articles-multistream-index.txt.bz2
will be downloaded on
/usr/local/wiki/en/wiki/20221201