From ba91e98b658c41329e283a033a0be61348756a99 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Mon, 8 Feb 2021 20:49:04 -0500 Subject: [PATCH] Only grab data from first table in file --- lightcards/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightcards/parse.py b/lightcards/parse.py index f9ca3ee..a447485 100644 --- a/lightcards/parse.py +++ b/lightcards/parse.py @@ -22,7 +22,7 @@ def parse_html(html): def clean_text(inp): return inp.get_text().rstrip() - soup = BeautifulSoup(html, "html.parser") + soup = BeautifulSoup(html, "html.parser").find("table") outp = [] for x in soup.find_all("tr"): -- 2.39.2