Skip to main content

A python library to extract information from Wikipedia pages.

Project description

Extract Information From Wikipedia Pages

This is a python library to extract information from Wikipedia pages.

Contents

  • tables.py includes function to extract information from a wikipedia table as a pandas dataframe.

Installation

You can install the Real Python Feed Reader from PyPI:

python -m pip install toolwiki

The reader is supported on Python 3.7 and above.

How to use

You can use this package in your own Python code by importing from the toolwiki package:

>>> from toolwiki import tables
>>> dfs= tables.get_dataframes(url='https://en.wikipedia.org/wiki/List_of_UFC_events', by_class='wikitable', table_indices= [], raw=False)
[                                         Event  ...  Ref.
1                                      UFC 276  ...   [9]
2                          UFC Fight Night 211  ...  [10]
..   ...                                         ...  ...        ...    ...
14                         UFC Fight Night 202  ...  [20]
15            UFC Fight Night: Walker vs. Hill  ...  [21]
[15 rows x 5 columns],        #                                       Event  ... Attendance   Ref.
1    593          UFC 271: Adesanya vs. Whittaker II  ...     17,872   [22]
2    592  UFC Fight Night: Hermansson vs. Strickland  ...        N/A   [23]
..   ...                                         ...  ...        ...    ...
601  002                           UFC 2: No Way Out  ...      2,000  [558]
602  001                        UFC 1: The Beginning  ...      7,800  [559]
[602 rows x 7 columns]]

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

toolwiki-0.1.5.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toolwiki-0.1.5-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file toolwiki-0.1.5.tar.gz.

File metadata

  • Download URL: toolwiki-0.1.5.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for toolwiki-0.1.5.tar.gz
Algorithm Hash digest
SHA256 5052203c49d61c45e5044d039917cefc4912a9e374543ebbc1637f6a908a4a18
MD5 4e644429c37f0f12408b9617adf9ceea
BLAKE2b-256 23cd71d7b741915bfe81cc0ff70b8a1c3e85c038731d1a89982dff3fe8cfd8fc

See more details on using hashes here.

File details

Details for the file toolwiki-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: toolwiki-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for toolwiki-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d6b8775edd34e40968b1f29e4c5d809e5586f1344a68f4ed119c9ffc268df040
MD5 bbd9816d0a0a15fe50321bcd1c85bb92
BLAKE2b-256 eff61a3d4866258c364251d8ea4e9f31e31758c269ead0c0b97fc5fed5c5397a

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