diff --git a/scrape_term.py b/scrape_term.py index f41cadf..7d4d68c 100644 --- a/scrape_term.py +++ b/scrape_term.py @@ -69,15 +69,19 @@ def parse(content, db): rows = t.find_all('tr', {'class': 'CourseRow'}) s = defaultdict(lambda: defaultdict(list)) for tr in rows: - cols = tr.find_all(lambda tag: tag.name == 'td' and not tag.get_text().isspace()) + cols = tr.find_all(lambda tag: tag.name == 'td') if cols: + # The first