Tips on how to use Wikipedia information to visualise the recognition of prime athletes and Olympic sports activities
The 2024 Paris Olympics came about over a three-week interval, with hundreds of thousands of individuals streaming in to observe wonderful sporting moments and cheer on their favourite athletes. On the similar time, large names have been making large performs once more and the following technology of statistical athletes was rising.
As a curious information scientist, I turned fascinated by how the collective opinions behind these evolve – which sports activities are the most well-liked and which athletes are on the rise. So to get the info behind this, I made a decision to do some in depth information assortment from Wikipedia, together with each Wikipedia profiles and think about depend data, to match the recognition of various sports activities and prime athletes. Beneath you will discover my outcomes, together with all of the Python code wanted to breed them.
All photos have been created by the authors.
First, we go to the Wikipedia website for the 2024 Summer season Olympics and obtain it utilizing the requests library. Then, we use the BeautifulSoup bundle to extract data from the HTML (i.e., a listing of all summer season sports activities and their Wiki website hyperlinks). To extract the sports activities, we additional observe the guide…

