Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wikihappy-1.0.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

wikihappy-1.0.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file wikihappy-1.0.0.tar.gz.

File metadata

  • Download URL: wikihappy-1.0.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for wikihappy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7aa44e06c35c3d3b9e2d04d0664ca5fe27ac5501846b72881aa54b13b042bb47
MD5 6b66330f1dc1a6b6ebde845f049907e4
BLAKE2b-256 8c02b9f0521b90310ccce0915fc9b3eecd3357a7ea2bcdd1d2820961fe09772a

See more details on using hashes here.

File details

Details for the file wikihappy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: wikihappy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for wikihappy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f7504618218ffb7d50728aba173d705ec3b3fc00191529b290f5849d620730b
MD5 562e17b4143fc435df690192d76aaea8
BLAKE2b-256 cb9aaefaf718ec21e7e47c3423c7799e6dc42db8839d196f49df49fca6221ea4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page