Skip to main content

Utility package for fetching summaries of Wikipedia pages

Project description

Wikipedia Summary

A small utility package I wrote for a side-project for fetching summaries of Wikipedia pages.

Installation

You can install the package with:

pip install wikipediasummary

Usage

from wikipedia_summary import WikipediaSummary
wiki = WikipediaSummary()
wiki.get_summary("Eindhoven")

>>> wiki.url
https://en.wikipedia.org/wiki/Eindhoven
>>> wiki.thumbnail_url
https://upload.wikimedia.org/wikipedia/commons/thumb/0/07/Lichttoren_Eindhoven_1_-_Cropped.jpg/320px-Lichttoren_Eindhoven_1_-_Cropped.jpg
>>> wiki.summary
Eindhoven is a city and municipality in the Netherlands, located in the southern province of North Brabant of which it is its largest. With a population of 238,326 on 1 January 2022, it is the fifth-largest city of the Netherlands and the largest outside the Randstad conurbation.

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

wikipediasummary-1.1.3.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wikipediasummary-1.1.3-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file wikipediasummary-1.1.3.tar.gz.

File metadata

  • Download URL: wikipediasummary-1.1.3.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for wikipediasummary-1.1.3.tar.gz
Algorithm Hash digest
SHA256 346d48d2da299a44168e8ca6910027328cc907df6e16263a1d1edacb70b3614b
MD5 39a68a33d9d030bad22c081c3cd15596
BLAKE2b-256 035c60ad821b2fbd6c479a90e89d795c400172827213afa001da9f35447312f2

See more details on using hashes here.

File details

Details for the file wikipediasummary-1.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for wikipediasummary-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bc4c619810d118cdda1977d9edb069416180381a5e6b61fd9dedc697d20284d0
MD5 2ebba665d6e48ef8ef68f85480666042
BLAKE2b-256 eb5879237d782ea1917a0b02868abaae65049e14f7a43b0a56b3b5a0231db6cd

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