Skip to content

A Go implementation of the readability algorithm by arc90 labs

License

Notifications You must be signed in to change notification settings

dyatlov/go-readability

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-readability

go-readability is library for extracting the main content off of an HTML page. This library implements the readability algorithm created by arc90 labs and was heavily inspired by https://github.com/cantino/ruby-readability.

Installation

go get github.com/mauidude/go-readability

Example

import(
  "github.com/mauidude/go-readability"
)

...

doc, err := readability.NewDocument(html)
if err != nil {
  // do something ...
}

content := doc.Content()
// do something with my content

Tests

To run tests go test github.com/mauidude/go-readability

About

A Go implementation of the readability algorithm by arc90 labs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 91.6%
  • Go 8.4%