Skip to content

Commit

Permalink
Update ratemyprofessorScraper.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
George-Zhang5246 authored Oct 12, 2023
1 parent 7277779 commit 2cdcb0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/ratemyprofessorScraper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function handler(
if (!('professor' in req.query && typeof req.query.professor === 'string')) {
res.status(400).json({ message: 'Incorrect query present' });
}
const url = new URL('https://www.ratemyprofessors.com/search/professors/1273?'); // UTD
const url = new URL('https://www.ratemyprofessors.com/search/professors/1273?'); //UTD
url.searchParams.append('q', req.query.professor as string);
return new Promise<void>((resolve) => {
fetch(url.href, {
Expand Down

0 comments on commit 2cdcb0b

Please sign in to comment.