Easy methods to use Wikipedia knowledge to visualise the recognition of high 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 following era of stat athletes emerged.
As a curious knowledge scientist, I began to surprise 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 knowledge behind this, I made a decision to do an in depth knowledge assortment from Wikipedia, containing each Wikipedia profiles and consider rely info, after which evaluate the recognition of various sports activities in addition to high athletes. Under, 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 time Olympics, and obtain it utilizing the requests library. Then, I take advantage of the BeautifulSoup bundle to extract info from the html — particularly, the record of all summer time sports activities and their Wiki web site hyperlinks. To extract the sports activities, moreover, I observe my handbook…