diff --git a/Project.toml b/Project.toml index 5590ec8..d126023 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "TableScraper" uuid = "3d876f86-fca9-45cb-9864-7207416dc431" authors = ["ZJ "] -version = "0.1.3" +version = "0.1.4" [deps] Cascadia = "54eefc05-d75b-58de-a785-1a3403f0919f" @@ -12,7 +12,7 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c" [compat] Cascadia = "1" Gumbo = "0.8" -HTTP = "0.9" +HTTP = "1" Tables = "1" julia = "1" diff --git a/src/Tables.jl b/src/Tables.jl index c44c739..83ede28 100644 --- a/src/Tables.jl +++ b/src/Tables.jl @@ -18,7 +18,7 @@ end Tables.istable(::Table)=true Tables.rowaccess(::Table)=true -Tables.columnaccess(::Table)=true +# Tables.columnaccess(::Table)=false Tables.columnnames(t::Table)=t.columnnames Tables.rows(t::Table)=t @@ -48,5 +48,10 @@ function Tables.getcolumn(t::TableRow, nm::Symbol) row[col] end +function Tables.getcolumn(t::TableRow, nm::String) + Tables.getcolumn(t, Symbol(nm)) +end + + Tables.columnnames(t::TableRow) = getfield(t, :source).columnnames \ No newline at end of file