Skip to content

Commit 9068881

Browse files
committed
fixed error with th in <thead> tag
1 parent a5eea23 commit 9068881

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TableScraper"
22
uuid = "3d876f86-fca9-45cb-9864-7207416dc431"
33
authors = ["ZJ <zhuojia.dai@gmail.com>"]
4-
version = "0.1.0"
4+
version = "0.1.1"
55

66
[deps]
77
Cascadia = "54eefc05-d75b-58de-a785-1a3403f0919f"

src/TableScraper.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ function scrape_tables(url, cell_transform=nodeText)::Vector{Table}
5555

5656
headers = [[] for _ in 1:n_tables]
5757

58+
5859
for (header, table_elem) in zip(headers, tables_elems)
59-
for header1 in eachmatch(sel"tbody tr th", table_elem)
60+
for header1 in eachmatch(sel"tr th", table_elem)
6061
# check the header span
6162
if haskey(header1.attributes, "colspan")
6263
colspan = parse(Int, header1.attributes["colspan"])

0 commit comments

Comments
 (0)