From: Armaan Bhojwani Date: Sat, 30 Jan 2021 21:42:57 +0000 (-0500) Subject: Don't clean headers X-Git-Tag: v0.1.0~22 X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=commitdiff_plain;h=5f2bf9c02a4a2528cb45693f6cc72e0f91d276a5 Don't clean headers --- diff --git a/src/parse.py b/src/parse.py index f965516..12c1073 100755 --- a/src/parse.py +++ b/src/parse.py @@ -28,7 +28,7 @@ def parse_html(html): for x in soup.find_all("tr"): outp.append([clean_text(y) for y in x.find_all("td")]) - return (clean_list([clean_text(x) for x in soup.find_all("th")]), + return ([clean_text(x) for x in soup.find_all("th")], clean_list(outp)) def main(file):