Skip to content

thmslmr/Shangai-Ranking-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages