Wikipedia API for Python extracting sections
Project description
Wikipedia with sections is a Python library that makes it easy to access and parse data from Wikipedia.
This is a fork from Jonathan Goldsmith’s Wikipedia package
>>> import wikipedia
>>> ny = wikipedia.page("New York")
>>> ny.sections[:5]
# ['Etymology', 'History', 'Early history', 'Dutch rule', 'English rule']
Installation
To install Wikipedia, simply run:
$ pip install wikipedia_sections
Wikipedia is compatible with Python 2.6+ (2.7+ to run unittest discover) and Python 3.3+.
Documentation
See https://github.com/goldsmith/Wikipedia for full dcumentation.
License
MIT licensed. See the LICENSE file for full details.
Credits
Wikipedia by Jonathan Goldsmith for the original repository
wiki-api by @richardasaurus for inspiration
@nmoroze and @themichaelyang for feedback and suggestions
The Wikimedia Foundation for giving the world free access to data
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wikihappy-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f7504618218ffb7d50728aba173d705ec3b3fc00191529b290f5849d620730b |
|
MD5 | 562e17b4143fc435df690192d76aaea8 |
|
BLAKE2b-256 | cb9aaefaf718ec21e7e47c3423c7799e6dc42db8839d196f49df49fca6221ea4 |