Skip to main content

A package to retrieve stats from ufcstats.com

Project description

UFCStats: A Python API for fighers stats on ufcstats.com

ufcstats provides a simple api to retrieve stats from figherse pages on ufcstats.com

Requirements

This package requires beautifulsoup4 and urllib3

Installation

Use pip to install the package from PyPi:

pip install ufcstats

Usage

Import the package and retrieve stats for a certain fighter:

import ufcstats
stats = ufcstats.getStats("Jon Jones")
print(stats)
{
    "Name": "Jon Jones",
    "Nick": "Bones",
    "Height:": "6' 4\"",
    "Weight:": "205 lbs.",
    "Reach:": "84\"",
    "STANCE:": "Orthodox",
    "DOB:": "Jul 19, 1987",
    "SLpM:": "4.48",
    "Str. Acc.:": "57%",
    "SApM:": "2.05",
    "Str. Def:": "64%",
    "TD Avg.:": "2.07",
    "TD Acc.:": "47%",
    "TD Def.:": "95%",
    "Sub. Avg.:": "0.5"
}

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

ufcstats-0.0.3.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

ufcstats-0.0.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file ufcstats-0.0.3.tar.gz.

File metadata

  • Download URL: ufcstats-0.0.3.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for ufcstats-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d19ef7f75b030fc7e604b90027e6d52791ae5d151ccd454d923aa882fd0192b5
MD5 4b849b8da49ee3245e5b502a7ef8b89a
BLAKE2b-256 4bece5feb0f82a1d02b9427fb176839c52ffb64bebac7a70990090416946558b

See more details on using hashes here.

File details

Details for the file ufcstats-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ufcstats-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for ufcstats-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8ae1a1c5398369444de3ce7bb25f803dc44f43260aacbb5f8651be5a70bd178d
MD5 0758f42b3d759a1165ccea0f98414eca
BLAKE2b-256 ee072d21f7802a9a6031b7d067ad8ff2e9fa62055a91b6a7eab1a488b9c7e353

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page