https://github.com/kiranniranjan/wiki-parser-py
A tool to parse wikipedia content
https://github.com/kiranniranjan/wiki-parser-py
kike parser wikiparser wikipedia
Last synced: 5 months ago
JSON representation
A tool to parse wikipedia content
- Host: GitHub
- URL: https://github.com/kiranniranjan/wiki-parser-py
- Owner: KiranNiranjan
- License: apache-2.0
- Created: 2017-02-21T03:51:36.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-10T19:57:11.000Z (about 8 years ago)
- Last Synced: 2024-08-08T15:46:52.861Z (over 1 year ago)
- Topics: kike, parser, wikiparser, wikipedia
- Language: Python
- Size: 15.6 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.md
Awesome Lists containing this project
README
Wikipedia Parser |wikiparser logo|
===========================================================================
Simple and best tool to parse wikipedia
.. image:: https://travis-ci.org/KiranNiranjan/wiki-parser-py.svg?branch=master
:target: https://travis-ci.org/KiranNiranjan/wiki-parser-py
Installing
----------
.. code:: bash
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
~~~~~~
.. code:: python
from wikiparser import *
Importing specific methods
~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code:: python
from wikiparser import infoBox, getMainImage, getParagraph
Methods
~~~~~~~
- infoBox()
.. code:: python
''' 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
.. code:: bash
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
.. _KiKe: http://kike.co.in
.. _wikiparser: https://www.npmjs.com/package/wikiparser
.. _LICENSE.md: ./LICENSE.md
.. |wikiparser logo| image:: https://raw.githubusercontent.com/KiranNiranjan/wiki-parser-js/master/images/wiki_parser_logo.png