Skip to content

betting_combat.providers.mmadecisions.client

client.py — MMADecisions.com: every judge’s score for every round of every UFC decision, the research’s parsing kept exactly (ufc/dataset/scrape.py): a year’s listing names the events, an event page its decisions, a decision page the scorecards.

event_links · decision_links · parse_decision the parsers
MmaDecisions the provider: ``events(year)``, ``decisions(event)``, ``scores(decision)``

One page at a time, paced (1.5 s); unicode fighter slugs quoted as the research quoted them.

Classes

MmaDecisions

Bases: Provider

MMADecisions.com’s pages.

decisions

decisions(event: str) -> list[str]

events

events(year: int) -> list[str]

page

page(path: str) -> str

scores

scores(decision: str) -> list[dict[str, Any]]

Functions

decision_links(event_html: str) -> list[str]

The decisions of an event page, in page order.

event_links(listing_html: str) -> list[str]

The UFC (and The Ultimate Fighter) events of a year’s listing, in page order.

listing_url

listing_url(year: int) -> str

parse_decision

parse_decision(page_html: str, source: str) -> list[dict[str, Any]]

One row per judge per round: the two fighters as the page names them (full names in the title), and each fighter’s score.