Get neatly formatted tables from any Wikipedia article
Project description
pykitables
A python package for getting neatly formatted tables from any Wikipedia page using beautifulsoup4.
##Installation '''pip install pykitables'''
Usage
tables = pykitables.get_tables("https://en.wikipedia.org/wiki/Template:COVID-19_pandemic_data/United_States_medical_cases")
#Returns a list of Wikitable objects
csv1 = tables[0].to_csv()
#Returns the csv for the first table in the article
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pykitables-0.0.2.tar.gz
(2.2 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 pykitables-0.0.2.tar.gz.
File metadata
- Download URL: pykitables-0.0.2.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a72ea20ac0a2370e98dd7e12930df3a687247f3139102ad0c6579eaa19e0ba22
|
|
| MD5 |
e68b4fdbfda5c669f0dbc873d36d0d29
|
|
| BLAKE2b-256 |
354c8345404e9a76c30e480cbefb94ae62e04b90d91992d40a79a7c05b3c7aa2
|
File details
Details for the file pykitables-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pykitables-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdb9017b6a5a3ccd55cd6608f2dc599b7bba50a8e0f29af3d2d85e3c7820da90
|
|
| MD5 |
ad818c04e25b994a4d00dc2ce1a2b9a5
|
|
| BLAKE2b-256 |
f40de2e8002407784b543f12282225784b539a5571f434c180b930bea345abc6
|