wikijs

Wikipedia interface for node

WikiJs

WikiJs is a node.js library which serves as an interface to Wikipedia (or any MediaWiki).

  • Search wiki articles
  • Fetch article content
  • Find all links/images/categories in a article page
  • Get parsed information about articles
  • Find articles by geographical location
  • and much more!

https://dijs.github.io/wiki

npm install wikijs

You can run these commands in order to build and test WikiJs:

git clone git@github.com:dijs/wiki.git
cd wiki
npm install
npm run build
npm test
var Wiki = require('wikijs');
 
var wiki = new Wiki();
 
wiki.page('Batman').then(function(page) {
    page.info().then(function(info) {
        console.log(info['alter_ego']); // Bruce Wayne 
    });
});