created reusable text component, and setup typing for it automatically. also fixed bugs with autoload and scraper so that it would handle appending course name headers

This commit is contained in:
Sriram Hariharan
2023-03-05 17:34:56 -06:00
parent 0956525e94
commit 6147289b40
14 changed files with 161 additions and 48 deletions

View File

@@ -42,7 +42,7 @@ export default function AutoLoad({ addRows }: Props) {
}
// scrape the courses from the page
const ccs = new CourseCatalogScraper(SiteSupport.COURSE_CATALOG_LIST);
const scrapedRows = ccs.scrape(nextRows);
const scrapedRows = ccs.scrape(nextRows, true);
// add the scraped courses to the current page
addRows(scrapedRows);