All Projects → dijs → infobox-parser

dijs / infobox-parser

Licence: other
Parse Wikipedia Infoboxes

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to infobox-parser

on-this-day
App that serves and displays events, births and deaths that occurred during the queried day of history, scraped from Wikipedia
Stars: ✭ 12 (-65.71%)
Mutual labels:  wikipedia
naacl2018-fever
Fact Extraction and VERification baseline published in NAACL2018
Stars: ✭ 109 (+211.43%)
Mutual labels:  wikipedia
lascallesdelasmujeres
Proyecto colaborativo para fomentar la generación de contenidos en OSM y Wikipedia, sobre mujeres.
Stars: ✭ 45 (+28.57%)
Mutual labels:  wikipedia
Spell4Wiki
Spell4Wiki is a mobile application to record and upload audio for Wiktionary words to Wikimedia commons. Also act as a Wiki-Dictionary.
Stars: ✭ 17 (-51.43%)
Mutual labels:  wikipedia
wikifox
A clean and simplified WikiPedia powered by wikifox.js
Stars: ✭ 50 (+42.86%)
Mutual labels:  wikipedia
awesome-alternatives
A list of alternative websites/software to popular proprietary services.
Stars: ✭ 123 (+251.43%)
Mutual labels:  wikipedia
wikibot
Some MediaWiki bot examples including wikipedia, wikidata using MediaWiki module of CeJS library. 採用 CeJS MediaWiki 自動化作業用程式庫來製作 MediaWiki (維基百科/維基數據) 機器人的範例。
Stars: ✭ 26 (-25.71%)
Mutual labels:  wikipedia
Zimpedia
Offline reader for Wikipedia
Stars: ✭ 18 (-48.57%)
Mutual labels:  wikipedia
space-wiki
太空维基 A Chrome Plug-in for Wikipedia
Stars: ✭ 19 (-45.71%)
Mutual labels:  wikipedia
wikipedia-api-docs
Wikipedia API documentation
Stars: ✭ 61 (+74.29%)
Mutual labels:  wikipedia
wistalk
Wistalk : Analyze Wikipedia User's Activity
Stars: ✭ 19 (-45.71%)
Mutual labels:  wikipedia
wikipedia-preview
wikimedia.github.io/wikipedia-preview/main
Stars: ✭ 42 (+20%)
Mutual labels:  wikipedia
today-AI-learned
Training a classifier to reddit's TIL to find new things on Wikipedia
Stars: ✭ 35 (+0%)
Mutual labels:  wikipedia
tech-seo-crawler
Build a small, 3 domain internet using Github pages and Wikipedia and construct a crawler to crawl, render, and index.
Stars: ✭ 57 (+62.86%)
Mutual labels:  wikipedia
citationhunt
A fun tool for quickly browsing unsourced snippets on Wikipedia.
Stars: ✭ 83 (+137.14%)
Mutual labels:  wikipedia
helpmebot
Helpmebot
Stars: ✭ 16 (-54.29%)
Mutual labels:  wikipedia
TelegramBot-Go
Telegram bot which search information in Wikipedia and written on Go language
Stars: ✭ 35 (+0%)
Mutual labels:  wikipedia
fetch
wik is use to get information about anything on the shell using Wikipedia.
Stars: ✭ 335 (+857.14%)
Mutual labels:  wikipedia
word2vec-on-wikipedia
A pipeline for training word embeddings using word2vec on wikipedia corpus.
Stars: ✭ 68 (+94.29%)
Mutual labels:  wikipedia
open-heroes
Some people that facilitate science, one way or the other
Stars: ✭ 37 (+5.71%)
Mutual labels:  wikipedia

NPM Version Build Status

Buy Me A Coffee

Infobox Parser

This was originally written as a companion module for wikijs. But it can work great on it's own as well. The main function of this module is parsing wikipedia article's infobox data. The infobox source is in wikitext format and difficult to parse. This module analyzes it and outputs JSON for you.

Usage

var parseInfo = require("infobox-parser")

parseInfo(`
{{Infobox Batman
|name      = Bruce Wayne
|hero      = y
}}`);
// Outputs {
	general: {
		hero: true,
		name: 'Bruce Wayne'
	}
}

Parsing Options

/**
 * Parse Wiki Infobox Text
 * @param {string} source - Infobox source text
 * @param {Object} options - Parsing options
 * @param {boolean} [options.simplifyDataValues=true] - Only use primary data values
 * @param {boolean} [options.removeSmall=false] - Remove <small>...</small> chunks of source data
 * @param {boolean} [options.removeReferences=true] - Remove <ref>...</ref> chunks of source data
 * @returns {Object} Structured information from source text
 */
const info = parseInfo(source, options);

Support

It supports many of wikipedia features, but not all yet. If there is a feature you need it to support, but it does not. Please create an issue and I will add the functionality.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].