Learn how to use Wikipedia knowledge 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 tens of millions of individuals watching the streams and rooting for his or her favorites. Concurrently, we noticed family names crushing it once more, and the subsequent technology of stat athletes emerged.
As a curious knowledge scientist, I began to marvel how the collective opinion behind these evolves — that are the preferred sports activities, and which athletes are on the rise? Then, to place knowledge behind this, I made a decision to do an intensive knowledge assortment from Wikipedia, containing each Wikipedia profiles and examine rely info, after which examine 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 have 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 exploit the BeautifulSoup bundle to extract info from the html — specifically, the checklist of all summer season sports activities and their Wiki web site hyperlinks. To extract the sports activities, moreover, I comply with my guide…