Skip to content

A Go implementation of the readability algorithm by arc90 labs

Notifications You must be signed in to change notification settings

ioriiod0/go-readability

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 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/ioriiod0/go-readability

Example

import(
  "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 readability

About

A Go implementation of the readability algorithm by arc90 labs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • HTML 90.1%
  • Go 9.9%