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.2.tar.gz (15.8 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.2-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wikipediasummary-1.1.2.tar.gz
  • Upload date:
  • Size: 15.8 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.2.tar.gz
Algorithm Hash digest
SHA256 b4aa8d7bcf33ec480d9a57f28d032bad8e106eb067263ad29c9cf048bcba3012
MD5 a406a6256d7e710e9b5d743c4e32cebc
BLAKE2b-256 3864377e88339134b75c62069b103079ff4795e66d31c5b114b40ae5dcb6bd41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wikipediasummary-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e31d2ea8305301c245d21a71233bae4bcd6abdffea3fca90d28e9d3ec0f76b9b
MD5 38e32be0666781f7b03f87084649fd39
BLAKE2b-256 c856ec3628f60d167f5905c16449389f37ad87ed1ca187688c8e8aaecb4a6fd5

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