Skip to content

Commit

Permalink
fixed error with th in <thead> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodaigh committed May 27, 2021
1 parent a5eea23 commit 9068881
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "TableScraper"
uuid = "3d876f86-fca9-45cb-9864-7207416dc431"
authors = ["ZJ <[email protected]>"]
version = "0.1.0"
version = "0.1.1"

[deps]
Cascadia = "54eefc05-d75b-58de-a785-1a3403f0919f"
Expand Down
3 changes: 2 additions & 1 deletion src/TableScraper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ function scrape_tables(url, cell_transform=nodeText)::Vector{Table}

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


for (header, table_elem) in zip(headers, tables_elems)
for header1 in eachmatch(sel"tbody tr th", table_elem)
for header1 in eachmatch(sel"tr th", table_elem)
# check the header span
if haskey(header1.attributes, "colspan")
colspan = parse(Int, header1.attributes["colspan"])
Expand Down

2 comments on commit 9068881

@xiaodaigh
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/37698

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.1 -m "<description of version>" 90688813c507b5313f53b0156cb3d28693a83d2b
git push origin v0.1.1

Please sign in to comment.