https://github.com/go-shiori/dom
Package for access and manipulate DOM element in HTML file
https://github.com/go-shiori/dom
dom go golang hmtl
Last synced: about 1 year ago
JSON representation
Package for access and manipulate DOM element in HTML file
- Host: GitHub
- URL: https://github.com/go-shiori/dom
- Owner: go-shiori
- License: mit
- Created: 2019-09-30T00:15:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-11T22:27:15.000Z (over 2 years ago)
- Last Synced: 2025-04-03T22:41:35.841Z (about 1 year ago)
- Topics: dom, go, golang, hmtl
- Language: Go
- Size: 27.3 KB
- Stars: 39
- Watchers: 4
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- go-awesome - DOM - HTML DOM 节点操作 (开源类库 / 文本处理)
- go-awesome - DOM - HTML DOM node editing (Open source library / Word Processing)
README
DOM
===
[](https://godoc.org/github.com/go-shiori/dom)
[](https://travis-ci.org/go-shiori/dom)
[](https://goreportcard.com/report/github.com/go-shiori/dom)
[](https://www.paypal.me/RadhiFadlillah)
[](https://ko-fi.com/radhifadlillah)
DOM is a Go package for manipulating [HTML](https://godoc.org/golang.org/x/net/html) node. The methods that exist in this package has similar name and purpose as the DOM manipulation methods in JS, which make it useful when porting code from JS to Go. Currently it used in [`warc`](https://github.com/go-shiori/warc) and [`go-readability`](https://github.com/go-shiori/go-readability).
## Installation
To install this package, just run `go get` :
```
go get -u -v github.com/go-shiori/dom
```
## Licenses
DOM is distributed under [MIT license](https://choosealicense.com/licenses/mit/), which means you can use and modify it however you want. However, if you make an enhancement for it, if possible, please send a pull request. If you like this project, please consider donating to me either via [PayPal](https://www.paypal.me/RadhiFadlillah) or [Ko-Fi](https://ko-fi.com/radhifadlillah).