Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 737 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 737 Bytes

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')