https://github.com/5rahim/gojadoc
Goja bindings for HTML parsing.
https://github.com/5rahim/gojadoc
cheerio goja goquery jquery
Last synced: about 1 month ago
JSON representation
Goja bindings for HTML parsing.
- Host: GitHub
- URL: https://github.com/5rahim/gojadoc
- Owner: 5rahim
- License: mit
- Created: 2024-11-07T15:43:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-07T15:54:15.000Z (over 1 year ago)
- Last Synced: 2026-02-16T03:57:41.631Z (4 months ago)
- Topics: cheerio, goja, goquery, jquery
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gojadoc
Goja bindings for HTML parsing inspired by Cheerio.
```go
package main
import (
"github.com/dop251/goja"
"github.com/5rahim/gojadoc"
)
func main() {
vm := goja.New()
err := gojadoc.BindDocument(vm)
if err != nil {
panic(err)
}
}
```
```ts
const html = `
First Post
This is the first post.
Read more
Second Post
This is the second post.
Read more
Third Post
This is the third post.
Read more