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.1.tar.gz
(15.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wikipediasummary-1.1.1.tar.gz.
File metadata
- Download URL: wikipediasummary-1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2985ce175aead1ac3517369dc708ce8374113d1461f8d5610db93eb94c5f6c0
|
|
| MD5 |
e776a05c59efb18f6b099885910cea31
|
|
| BLAKE2b-256 |
29d556d1ff6cc23bb30b4a08c6907abb300a3095b624bfa6f190bf252376e65c
|
File details
Details for the file wikipediasummary-1.1.1-py3-none-any.whl.
File metadata
- Download URL: wikipediasummary-1.1.1-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d06b516d54a80c47c1ca95460abb435304929bdd6b674d87eae216d1ba4243b
|
|
| MD5 |
ef0015212dc8a2d574b165e89920e04e
|
|
| BLAKE2b-256 |
b8c44ec3f8addba02abd4634d8bb65acc9398c6bf04398f14698e76517d0d5ef
|