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

Uploaded Python 3

File details

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

File metadata

  • Download URL: wikipediasummary-1.1.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.tar.gz
Algorithm Hash digest
SHA256 c4253c6b6d007312ec1669beb58d298284bc3579ea46eb5bffeda39bddaf5098
MD5 4f49a3d5104a3494258fa370d9ab61f4
BLAKE2b-256 2adb5cdf2b81a7b1510b1114d734f550fd9420e0032ba16d47a50f8ac83453f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wikipediasummary-1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for wikipediasummary-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed8d04d708555c39e3cc4f96c42d300e0d7e25ad339e12575af7d5f7837f937b
MD5 430773b90216333246d67f785c52920d
BLAKE2b-256 a29fda9a01a6dc3aadb388d627ca42d2ee47120b13420656605d37d7944e0659

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