diff options
author | Yann Herklotz <git@yannherklotz.com> | 2019-06-02 13:23:23 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2019-06-02 13:23:29 +0100 |
commit | 74f410dc07afe2d0a07f61a1dfa85c15cc31e446 (patch) | |
tree | a7c96b85f601745c16dac943a775bc4535cbd8a5 /scripts/convert.py | |
parent | 58eb1aea52fb57666f2f4e620e3ac9a8dd05522c (diff) | |
download | verismith-74f410dc07afe2d0a07f61a1dfa85c15cc31e446.tar.gz verismith-74f410dc07afe2d0a07f61a1dfa85c15cc31e446.zip |
Add selection for soup
Diffstat (limited to 'scripts/convert.py')
-rwxr-xr-x | scripts/convert.py | 2 |
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] |