aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2019-06-02 13:23:23 +0100
committerYann Herklotz <git@yannherklotz.com>2019-06-02 13:23:29 +0100
commit74f410dc07afe2d0a07f61a1dfa85c15cc31e446 (patch)
treea7c96b85f601745c16dac943a775bc4535cbd8a5 /scripts
parent58eb1aea52fb57666f2f4e620e3ac9a8dd05522c (diff)
downloadverismith-74f410dc07afe2d0a07f61a1dfa85c15cc31e446.tar.gz
verismith-74f410dc07afe2d0a07f61a1dfa85c15cc31e446.zip
Add selection for soup
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/convert.py2
1 files changed, 1 insertions, 1 deletions
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]