Swift Package Index


A Swift wrapper for MyHTML, a fast, pure-C, HTML 5 parsing library


  • The latest stable release is 2.0.0. Released almost 2 years ago.
  • The last commit to master was almost 2 years ago.

Swift Version Compatibility

  • 2.0.0 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 2.0.0 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

MyHTML

MyHTML is a Swift warper for the MyHTML C library, a fast, pure C, HTML 5 parser.

Status

Most non-mutating high level parsing functions are already warped, in other words you should already be able to read the DOM tree with the current state of the project. Contributions, in the form of issues or PRs are welcome, don't hesitate to contact me if you have any requests or suggestions.

This library has continuous integration, the master branch is protected and the master branch tip should always pass tests.

Master branch

CircleCI

Dev branch

CircleCI

Installation

macOS

To install the MyHTML C library on your machine, cloning the MyHTML C repo and following the install instructions should be enough.

Linux

Installing on Linux is nearly as easy as on macOS, start by cloning the MyHTML C repo. Since the Linux linker doesn't search for shared libraries in /usr/local, which is the default install location, my best recommendation is to specify a different install prefix. From the root of your MyHTML C library source clone, run:

make prefix="/usr"
make test
make install prefix="/usr"

Additional installation notes

License notes

This Swift wrapper is distributed under the Apache License 2.0, note that this license only concerns the Swift wrapper. The MyHTML C library is distributed under it's own license.