From 5f2bf9c02a4a2528cb45693f6cc72e0f91d276a5 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sat, 30 Jan 2021 16:42:57 -0500 Subject: [PATCH] Don't clean headers --- src/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.39.2