Giter Site home page Giter Site logo

ammar-fakih / ratemyprof-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tisuela/ratemyprof-api

0.0 0.0 0.0 4.31 MB

Python API for searching Rate My Professor data from all professors of a single University. This class can have numerous uses, and can be easily modified for use in your RMP applications.

License: MIT License

Python 100.00%

ratemyprof-api's Introduction

Rate My Professor class for data scraping and searching

Python class for scraping and searching Rate My Professor data from all professors of a single University. This class can have numerous uses, and can be easily modified for use in your RMP applications.

Getting Started

University objects need to be initialized with their corresponding Rate My Professor university ID.

WilliamPatersonUniversity = RateMyProfScraper(1205) #WPUNJ Object
MassInstTech = RateMyProfScraper(580)   #MIT Object

This ID number can be easily obtained by visiting the Rate My Professor page for your University. At this page, the URL contains the ID number for that University.

http://www.ratemyprofessors.com/campusRatings.jsp?sid=1205
http://www.ratemyprofessors.com/campusRatings.jsp?sid=580

Some Functions

WilliamPatersonUniversity.SearchProfessor("Cyril Ku")  

The function above will return and print basic information on the searched professor. In this case, we search for the RMP data on Professor Cyril Ku. The printed and the returned dictionary can be found below.

{
'tDept': 'Computer Science', 
'tSid': '1205', 
'institution_name': 'William Paterson University', 
'tFname': 'Cyril', 
'tMiddlename': '', 
'tLname': 'Ku', 
'tid': 97904, 
'tNumRatings': 21, 
'rating_class': 'good', 
'contentType': 'TEACHER', 
'categoryType': 'PROFESSOR', 
'overall_rating': '4.3'
}
MassInstTech.PrintProfessorDetail("overall_rating")    

The above funtion will print out and return the requested value. The result is below.

4.3

This class can be easily edited to use in your project.

ratemyprof-api's People

Contributors

ammar-fakih avatar rodantny avatar sarahyurick avatar tisuela avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.