go-readability
go-readability copied to clipboard
A Go implementation of the readability algorithm by arc90 labs
This allows to have IMG tags displaying correctly in resulting content. Example: ``` go doc, err := readability.NewDocument(html) if err != nil { return } doc.WhitelistTags = []string{"div", "p", "img"}...
I tried every test, but nothing can match image, see `BestCandidateHasImage` in the Document property but its never been used.
/github.com/PuerkitoBio/goquery.(*Selection).Html(0xc434f4dc50, 0xc43d2efbe0, 0xc434f4c090, 0xc434f4c090, 0xc43d2efcd9) /go/src/vendor/github.com/PuerkitoBio/goquery/property.go:109 +0x125 fp=0xc43d2efb38 sp=0xc43d2efad8 pc=0x6683a5 vendor/github.com/mauidude/go-readability.(*Document).sanitize(0xc4200c6000, 0xc44c0fc000, 0x38db56b, 0x3632419, 0x3632419) /go/src/vendor/github.com/mauidude/go-readability/readability.go:449 +0x7b4 fp=0xc43d2efcf8 sp=0xc43d2efb38 pc=0x66cc14 vendor/github.com/mauidude/go-readability.(*Document).Content(0xc4200c6000, 0x3632419, 0xc4200c6000) /go/src/vendor/github.com/mauidude/go-readability/readability.go:112 +0x9c fp=0xc43d2efd90 sp=0xc43d2efcf8 pc=0x66b5ec source code:...
Hi, I found another [Readability library](https://github.com/agonopol/readability) for Go. Out of curiosity, what are the main differences between these two? Which is better?