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()
eindje = wiki.get_summary("Eindhoven")

>>> eindje.url
https://en.wikipedia.org/wiki/Eindhoven
>>> eindje.thumbnail_url
https://upload.wikimedia.org/wikipedia/commons/thumb/0/07/Lichttoren_Eindhoven_1_-_Cropped.jpg/320px-Lichttoren_Eindhoven_1_-_Cropped.jpg
>>> eindje.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.4.tar.gz (16.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.1.4-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wikipediasummary-1.1.4.tar.gz
  • Upload date:
  • Size: 16.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.1.4.tar.gz
Algorithm Hash digest
SHA256 9d201e4d08dff8fc2d30de7c2efcd6680b1d794d7ae905cbe8d7bd0224b57645
MD5 977e81d747d578c8103b0f5b38e364b1
BLAKE2b-256 7256558322bc293a91ccb2b9802ccc027ab2a57f5cca84941d2800c799382ab3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wikipediasummary-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 46b2cf4a7d1d021428dccc4962f5a60aca53f882154f110b2c0d75e726007562
MD5 a6669080d175f7b2ead5db10c9e897b8
BLAKE2b-256 7b6ce7d0d559c4e3578346ae59780e2a04e4fa92ac5813b1ca1ca31e6b06b717

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