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.

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wikipediasummary-1.0.tar.gz
Algorithm Hash digest
SHA256 deb8c2d4bf127805ed67138019b968bb63984151eb8dfb8ff5a180068359163a
MD5 ed7cc314f81037f8e6c5129fbbf765b2
BLAKE2b-256 d60bb817cf65c849b9342863ecc1fd54765ad3091ebf912eeb96d696b2348206

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wikipediasummary-1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfb4ed1b3f4fb5c9c60b44bd6e93de469819024d0ef198a2cd68fb88ae9f7d63
MD5 14ab8d6c1abf5bed8aebbd3c3480b8a2
BLAKE2b-256 9605ebbb7dadb5d4a64b411b52c3bad23b81011f1cc1a5c8f0499d7d375cc7a6

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