Imports a full Wikipedia XML dump into MongoDB, parsing wikiscript into queryable JSON. Version 2.4.0. Release cadence: sporadic, last update 2017. One-liner from CLI or Node.js script. Uses wtf_wikipedia for parsing. Works with any language Wikipedia dump. Supports plaintext extraction and optional Redis-backed workers for faster loading. Requires Node.js ≥0.10.33 and MongoDB.
npm install wikipedia-to-mongodbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Imports a Wikipedia XML dump into MongoDB with options for plaintext extraction and redirect handling.
Upgrade to Node.js 4+ or use older version of package.
Use the --worker option with Redis to parallelize and speed up import.
Set `skip_redirects: true` to exclude redirects.
Create indexes manually after import: `db.wikipedia.createIndex({title:1})`Use the --worker option to offload parsing to child processes.
Run `npm install -g wikipedia-to-mongodb wtf_wikipedia` or `npm install --save wikipedia-to-mongodb`
Start MongoDB with `mongod` or specify a different host/port in connection string.
Provide the correct absolute or relative path to the .xml.bz2 file.