RateMyProfessors URL in, AI summary/score/chat out.
- Vite + React frontend
- Node + Express backend
- Python Selenium scraper (
RMPScraper.py) - OpenAI API
- Install dependencies:
npm installpip install -r requirements.txt
- Create
.envwith:OPENAI_API_KEY=your_key_here
- Run backend API:
npm run server
- Run frontend:
npm run dev
Alias: POST /api/summarize
Request:
{
"professorUrl": "https://www.ratemyprofessors.com/professor/3126905"
}Response:
{
"summaryParagraph": "string",
"numericScore": 0,
"scoreExplanation": "string",
"professorContext": {
"professorName": "string",
"schoolName": "string",
"department": "string",
"ratingStats": {
"overall": 0,
"difficulty": 0,
"wouldTakeAgain": 0
},
"reviewCount": 0,
"reviewsSample": [
{
"date": "string",
"rating": 0,
"difficulty": 0,
"tags": ["string"],
"text": "string"
}
]
}
}Request:
{
"messages": [
{ "role": "user", "content": "How hard is this class?" }
],
"professorContext": { "...": "context from summary response" }
}Response:
{
"answer": "string"
}