stamford-syntax-club / course-compose

Course Compose is a course-review website tailored for Stamford students, providing a platform for sharing and discovering insights about various courses
MIT License
2 stars 0 forks source link

[SCRAPER] make payload string dynamic #21

Open chinathaip opened 10 months ago

chinathaip commented 10 months ago

https://github.com/stamford-syntax-club/course-compose/blob/002d872b568e2cb3e747f9476db76ecc8b07388c/apps/regscraper/scraper.ts#L8C50-L8C50

can we have the acadyear=2023&semester=1 passed as flags or arguments when we run just like the output filename?

it'll be easier to reuse this scraper for the future terms

btw it's now semester 2 - maybe we should scrape from 1/2022 until 2/2023(current) when we're actually using?