🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

node-wikipedia

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-wikipedia

Simple wrapper for MediaWiki API

0.0.2
latest
Source
npm
Version published
Weekly downloads
17
13.33%
Maintainers
1
Weekly downloads
 
Created
Source

node-wikipedia

Node.js wrapper for the Wikipedia API

Build Status

#Installation

npm install node-wikipedia

#Demo

var wikipedia = require("node-wikipedia");

wikipedia.page.data("Clifford_Brown", { content: true }, function(response) {
	// structured information on the page for Clifford Brown (wikilinks, references, categories, etc.)
});

wikipedia.revisions.all("Miles_Davis", { comment: true }, function(response) {
	// info on each revision made to Miles Davis' page
});

wikipedia.categories.tree(
	"Philadelphia_Phillies",
	function(tree) {
		//nested data on the category page for all Phillies players
	}
);

#Philosophy

The MediaWiki API is wonderfully permissive and horribly documented. This is a lightweight wrapper. In addition to providing a basic interface for making HTTP requests to the API, it bundles some requests so that one needn't bother with pagination and so forth.

#Under the Hood dial.js makes API requests, accepting parameters as an object, options as an object, and a callback.

#License This script is provided free and open-source under the MIT license. If you use it, you are politely encouraged to link to this repo.

Keywords

wikipedia

FAQs

Package last updated on 07 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts