From 74f410dc07afe2d0a07f61a1dfa85c15cc31e446 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 2 Jun 2019 13:23:23 +0100 Subject: Add selection for soup --- scripts/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/convert.py b/scripts/convert.py index 0552367..d592fd6 100755 --- a/scripts/convert.py +++ b/scripts/convert.py @@ -12,7 +12,7 @@ def main(file_, output): sec = re.compile(r"([0-9.]+)s") soup = BeautifulSoup(file_contents, "html.parser") - table = soup.select_one("table") + table = soup.select_one("table.table") headers = [th.text for th in table.select("tr th")] vals = [[td.text for td in row.find_all("td")] for row in table.select("tr + tr")][:-2] -- cgit