Tuesday, July 13, 2021
I like to keep up with the UFC, but I have not seen every fight that ever took place - I have not seen most of them. Sometimes I like to check out a fighter's history and look for an interesting fight to watch, or if I missed the latest event, I want to see who fought on it; but I don't want anything spoiling. Spoilers are everywhere, particularly if you did not watch the latest event live. One clumsy Google search and the results will be made very apparent. There wasn't really anywhere you could go to get this information without the spoilers, so I made my own place for it at liamfoot.com/ufc.
The Events Page.
This is the Landing page, residing at liamfoot.com/ufc. You can scroll through the entire list of events, and click any of them to see who fought who on which card, without seeing the results.
Event Page for UFC 264: Poirier vs McGregor 3
When clicking into a specific event, the fights can be seen without the results. Each time the page is loaded, the fighter positions are randomized - so unlike Wikipedia, the winner is not always on the left side. All results are hidden by default, but can be revealed if desired - either selectively, or for the entire event. When hovering a spoiler button, the row turns red as a guide.
Fighter Page - showing Stipe Miocic's fight history.
At the top of the Landing page, there is a search box. This box provides real-time search results by fighter name, and takes you to a given fighter's Fighter page. This page lists all of a given fighter's UFC fights, and the events and fighters displayed can be clicked through.
All of the data is sourced from Wikipedia, as linked at the top of the Events page. Wikipedia is a fantastic information source, and understandably, they cannot tailor their data to everyone's needs - that's why I built something around their product.
I do not want to hit them with too many requests, so I do my best to be economical with regards to fetching the data. I built a web scraper that stores the data in my own database, so that all data is served from my server rather than from Wikipedia. This also allows me to do extra processing.
The back end makes use of SQL Server full text search for the fighter search, and data is served through Umbraco as a Web API.
If you want quick access to spoiler-free UFC events, make sure to bookmark liamfoot.com/ufc!