Skip to content

cecoeco/HTMLTables.jl

Repository files navigation

License: MIT CI test Style: Blue DOI Package Statistics Contributor Covenant

HTMLTables

Julia package for reading, writing, and viewing HTML tables.

Documentation

Documentation Stable Documentation Dev

Installation

Insert using Pkg; Pkg.add("HTMLTables") in the Julia REPL.

To install a version containing the latest committs simply use this command instead: using Pkg; Pkg.add(url="https://github.com/ceceoeco/HTMLTables.jl")

Functions

Reading HTML tables:

  • HTMLTables.get reads an HTML table as a string based on the given index.
  • HTMLTables.getall extracts all tables from an HTML document or website.
  • HTMLTables.read extracts the data from an HTML table using a sink function.
  • HTMLTables.readall extracts the data from all tables of an HTML document or website.

Writing HTML tables:

  • HTMLTables.table uses the Tables.jl interface to write an HTML table as a string.
  • HTMLTables.write uses the Tables.jl interface to write an HTML table in an HTML file.
  • HTMLTables.jpg writes an HTML table as a JPG image.
  • HTMLTables.pdf writes an HTML table as a PDF document.
  • HTMLTables.png writes an HTML table as a PNG image.

Viewing HTML tables:

  • HTMLTables.display displays a Julia table as an HTML table in a Julia IDE.
  • HTMLTables.open opens a Julia table as an HTML table in the browser.

License

Copyright © 2024 Ceco Elijah Maples

This work is licensed under the MIT License - see the LICENSE file for details.