Skip to content

betting_combat.consumers.mmadecisions

MMADecisions.com: every judge’s score for every round of every UFC decision.

Ported from the research (ufc/dataset/scrape.py: judge_scores, parse_decision) with identical parsing: a year’s listing page names the events, an event page names its decisions, a decision page carries the scorecards. Pages are read one at a time and paced (:class:~.scrape.PacedFetcher); slugs with unicode names are quoted as the research quoted them.

Classes

MmaDecisions

decisions

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

events

events(year: int) -> list[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.