/Shangai-Ranking-Scraper

:mortar_board: Work with Shangai Ranking - Python

Primary LanguagePython

Shangai Ranking scraper

BeautifulSoup scraper to deal with the Shangai Ranking.

Dependencies

pip install beautifulsoup4

Examples of use

ranking = ShangaiRanking()

# Get the current Shangai Ranking
world_current_ranking = ranking.get()

# Get the 2015 Shangai Ranking in Mathematics
params = {'year' : 2015, 'subject' : 'Mathematics'}
math_ranking_2015 = ranking.get(**params)

# Get the rank of a specified university
params = {'university' : 'Harvard University'}
harvard_university = ranking.get(**params)

# Get search result for 'Harvard University' and 'China'
havard_search = ranking.search('Harvard University')
china_search = ranking.search('China')