我正在尝试从几千个 html 文件或站点数据中提取表数据,但是这些表没有 div 来使这变得简单,而且我对 beautiful soup 还很陌生。现在,我正在手动编辑所有转换后的 html 到 csv 并将它们放入我的数据库中以创建表格,但我宁愿只抓取我已经拥有的内容。
<
5k Run
Overall Finish List
September 24, 2022
1st Alarm 5k |
||||||||
| Place | Name | City | Bib No | Age | Gender | Age Group | Total Time | Pace |
| 1 | Runner 1 | ANYTOWN PA | 390 | 52 | M | 1:Overall | 18:43.93 | 6:03/M |
| 2 | Runner 2 | ANYTOWN PA | 380 | 33 | M | 1:19-39 | 19:31.27 | 6:18/M |
| 3 | Runner 3 | ANYTOWN PA | 389 | 65 | F | 1:Overall | 45:45.20 | 14:46/M |
| 4 | Runner 4 | ANYTOWN PA | 381 | 18 | F | 1: 1-18 | 53:28.84 | 17:15/M |
| 5 | Runner 5 | ANYTOWN PA | 382 | 41 | F | 1:40-59 | 53:30.48 | 17:16/M |
| 6 | Runner 6 | ANYTOWN PA | 384 | 14 | M | 1: 1-18 | 57:38.66 | 18:36/M |
| 7 | Runner 7 | ANYTOWN PA | 385 | 72 | F | 1:60-99 | 57:40.11 | 18:36/M |