Skip to content

Possible revamp of course offering scraper  #6

@neallithic64

Description

@neallithic64

Current implementations of CourseOfferingScraper and the constructor for SectionInfo are rather forced, with hard-coded array indices and haphazard String array sizes (i.e., uncertainty which cells are null or do not contain legitimate values). So, in future versions, it might be better to look into better and more elegant methods of scraping.
A possible fix is to scrape the List result from JSoup's parsing and treat it as a table, row-wise, then column-wise. Eventually, this will lead to the elimination of conditionals in the SectionInfo constructor. Also, this implementation might require deeper HTML analysis and a rewrite of coScrape(). More experimentation with JSoup methods is needed.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions