Skip to content

Latest commit

 

History

History
83 lines (51 loc) · 1.6 KB

File metadata and controls

83 lines (51 loc) · 1.6 KB

Wikipedia Parser wikiparser logo

Simple and best tool to parse wikipedia

https://travis-ci.org/KiranNiranjan/wiki-parser-py.svg?branch=master

Installing

pip install wikiparser

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Dependency

  • Python 3
  • wikiparser

Import

from wikiparser import *

Importing specific methods

from wikiparser import infoBox, getMainImage, getParagraph

Methods

  • infoBox()

    ''' To get info_box table from wikipedia as json '''
    infoBox = infoBox("https://en.wikipedia.org/wiki/Methane")

Running the tests

Explain how to run the automated tests for this system

python tests/test.py

Authors

KiKe

Javasctipt (npm)

wikiparser KiKe

License

This project is licensed under the MIT License - see the LICENSE.md file for details