an automated python crawler querying ratemyprofessors public graphql endpoint to extract faculty evaluation metrics and legacy identifiers for rateutsa.
graphql interface
ratemyprofessors exposes a graphql endpoint at https://www.ratemyprofessors.com/graphql instead of traditional rest paths.
the payload targets TeacherSearchPaginationQuery using the base64-encoded institutional identifier for ut san antonio (schoolID: U2Nob29sLTE1MTY=).
requests set origin and referer headers to https://www.ratemyprofessors.com with a standard browser user agent to avoid edge rejections.
cursor pagination
pagination uses relay-style cursor navigation rather than offset numbers. each query requests batches of 500 records via the count variable. after consuming each page’s edges, the crawler checks pageInfo.hasNextPage. if true, it extracts pageInfo.endCursor and passes it back as the cursor variable for the next request until hasNextPage evaluates to false.
extracted data
legacyId, firstName, lastName, department, avgRating, numRatings, wouldTakeAgainPercent, avgDifficulty
the legacyId is the critical foreign link used downstream to construct direct professor profile links (https://www.ratemyprofessors.com/professor/{legacyId}).
records stream directly into a .csv file.