What are the best Python scripts you’ve ever written?
Answer by Abhijit Agarwal:
A script to get rank and fees information about CS master’s courses in Europe
I was looking into the idea of pursuing my masters in Computer Science from Europe. I found a where you could view master courses in different subjects and countries all over Europe.
But the fees is different for students within the EU and students outside of the EU, and the latter was not always included. Moreover, there was no way to see how good a college is considered, because there was no ranking on the page.
So I wrote a script to scrape the results on the website and find it’s fees for outsiders and the and rankings of the University and write all this data into a CSV file.
This script also made the use of Wolfram Alpha API and the Google Search engine. I used BeautifulSoup library for scraping and LXML library for parsing XML outputs by
Here is a sample output for the keyword “Graphic Design”
It is definitely not my best script but a problem that interested me a lot at the time.
You can look at the code at
Please note that even though the code works last time I checked, it is nowhere near what we call “Good Quality” code and I request that you not judge me by how messy it is. :)
You are welcome to contribute to the development of this code and if you do it independently, send me a link when you are done maybe?