random-wiki-batch
Get a specified number of random Wikipedia articles. Returns a Promise consisting of an array of random articles from Wikipedia using the MediaWiki API with their titles, pageid, and content.
The content appears under the revisions
key of an article as raw wikitext. Check out txtwiki.js for parsing wikitext as plaintext.
Install
$ npm install --save random-wiki-batch
Usage
const randomWikiBatch = require('random-wiki-batch');
const randomArticles = randomWikiBatch(3);
randomArticles.then(articles => console.log(articles));
License
MIT