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

wikipedia_sections-2.0.0.tar.gz (10.5 kB view details)

Uploaded Source

File details

Details for the file wikipedia_sections-2.0.0.tar.gz.

File metadata

  • Download URL: wikipedia_sections-2.0.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.5

File hashes

Hashes for wikipedia_sections-2.0.0.tar.gz
Algorithm Hash digest
SHA256 41bdb56c6f52790e94bd70689f2363b62abb9ee88da8967d65d6a1db0251e103
MD5 9af410731ec492a746f5c2ca0533c62b
BLAKE2b-256 ffce9ec885cef862861bde238ab895f0af4079ff697ed18d7403f2236243beda

See more details on using hashes here.

Supported by

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