https://github.com/popflamingo/myhtml
A Swift wrapper for MyHTML, a fast, pure-C, HTML 5 parsing library
https://github.com/popflamingo/myhtml
binding html-parser linux myhtml swift swift-package-manager
Last synced: 9 months ago
JSON representation
A Swift wrapper for MyHTML, a fast, pure-C, HTML 5 parsing library
- Host: GitHub
- URL: https://github.com/popflamingo/myhtml
- Owner: PopFlamingo
- License: apache-2.0
- Created: 2019-01-16T00:24:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-01T11:33:29.000Z (over 7 years ago)
- Last Synced: 2025-10-21T07:54:24.087Z (9 months ago)
- Topics: binding, html-parser, linux, myhtml, swift, swift-package-manager
- Language: Swift
- Homepage:
- Size: 48.8 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MyHTML
MyHTML is a Swift warper for the [MyHTML C library](https://github.com/lexborisov/myhtml), 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
[](https://circleci.com/gh/adtrevor/MyHTML/tree/master)
### Dev branch
[](https://circleci.com/gh/adtrevor/MyHTML/tree/dev)
## Installation
### macOS
To install the MyHTML C library on your machine, cloning the [MyHTML **C repo**](https://github.com/lexborisov/myhtml) and following [the install instructions](https://github.com/lexborisov/myhtml/blob/master/INSTALL.md) should be enough.
### Linux
Installing on Linux is nearly as easy as on macOS, start by cloning the [MyHTML **C repo**](https://github.com/lexborisov/myhtml). 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:
```bash
make prefix="/usr"
make test
make install prefix="/usr"
```
### Additional installation notes
- Additional installation details and options are documented in the [C project install instructions](https://github.com/lexborisov/myhtml/blob/master/INSTALL.md)
## 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](https://github.com/lexborisov/myhtml) is distributed under it's own license.