The right way to use Wikipedia information to visualise the recognition of prime athletes and Olympic sports activities
We simply witnessed an exquisite three weeks of sports activities because the 2024 Olympic Video games unfolded in Paris, with thousands and thousands of individuals watching the streams and rooting for his or her favorites. Concurrently, we noticed family names crushing it once more, and the following technology of stat athletes emerged.
As a curious information scientist, I began to marvel how the collective opinion behind these evolves — that are the most well-liked sports activities, and which athletes are on the rise? Then, to place information behind this, I made a decision to do an intensive information assortment from Wikipedia, containing each Wikipedia profiles and think about depend data, after which evaluate the recognition of various sports activities in addition to prime athletes. Beneath, please discover my outcomes and all of the Python code wanted to breed these.
All photographs had been created by the creator.
First, let’s go to the Wikipedia web site of the 2024 Summer season Olympics, and obtain it utilizing the requests library. Then, I take advantage of the BeautifulSoup package deal to extract data from the html — particularly, the checklist of all summer time sports activities and their Wiki web site hyperlinks. To extract the sports activities, moreover, I observe my guide…