Skip to content

An attempt at a python package to get tables from a wikipedia page

License

Notifications You must be signed in to change notification settings

omshii/pykitables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An attempt at a python package to get tables from a wikipedia page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages