First, I identified the leading world university rankings. Since I was specifically interested in math, I looked at their latest rankings of the best universities for studying math (or closest superset). Here are the rankings I ended up using:
Second, I scraped each ranking. In the simplest cases, this involved finding the underlying API, allowing me to directly request the ranking data in JSON format using Scrapy. In the most complex case, this involved crawling the ranking page by page using Playwright.
You can find the implementation details and raw data in my GitHub repo.
Third, I used JupyterLab to process the data. In essence, this involved cleaning the raw data, normalizing the university names across the rankings, and combining the three rankings into one by averaging the position of each institution across each ranking.
As you can see in the image above, I found that the top three math institutions are:
You can also find the data processing details and full ranking in my GitHub repo.
Fourth, I used the Class Central database, with its close to 60K online courses, to find all the math courses offered by the universities in the ranking.
The end result is a list of 100+ online courses offered by 60 best universities in the world for studying math in 2022.
While processing the data, I noticed something interesting: 58 of the top 60 universities offer online courses. That’s 97% of them — a lot more than I would have guessed. The world’s top institutions are very prolific creators of online courses.
With 100+ courses to pick from, I hope you find something you like. But if these aren’t enough, check out the Class Central catalog, which has close to 60K online courses, many of them free or free-to-audit.