Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readhtml function (or read(fname, HTMLDocument)) #70

Open
scls19fr opened this issue Jun 20, 2019 · 1 comment
Open

readhtml function (or read(fname, HTMLDocument)) #70

scls19fr opened this issue Jun 20, 2019 · 1 comment

Comments

@scls19fr
Copy link
Contributor

scls19fr commented Jun 20, 2019

Hello,

Gumbo have a parsehtml function but reading HTML from file can be do using

parsehtml(read(filename, String))

Maybe a readhtml function should be defined as

readhtml(filename, args... ; kwargs...) = parsehtml(read(filename, String), args...; kwargs...)

An other API idea could be (to mimic read API) to have the following functions:

parse(HTMLDocument, input)

and

read(filename, HTMLDocument)

What is your opinion about such API idea?

Kind regards

@scls19fr scls19fr changed the title readhtml function (or read(fname, HTML)) readhtml function (or read(fname, HTMLDocument)) Jun 20, 2019
@scls19fr
Copy link
Contributor Author

An other approach could be to integrate with FileIO.jl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant