Simple and best tool to parse wikipedia
pip install wikiparser
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.
- Python 3
- wikiparser
from wikiparser import *
from wikiparser import infoBox, getMainImage, getParagraph
infoBox()
''' To get info_box table from wikipedia as json ''' infoBox = infoBox("https://en.wikipedia.org/wiki/Methane")
Explain how to run the automated tests for this system
python tests/test.py
This project is licensed under the MIT License - see the LICENSE.md file for details