/goreadly

goreadly, makes web pages more readable.

Primary LanguageGoMIT LicenseMIT

goreadly

goreadly is Go package is to makes Web pages more readable.

GoDoc

Installation

go get github.com/antchfx/goreadly

Example

package main

import (
	"fmt"
	"net/http"

	"github.com/antchfx/goreadly"
)

func main() {
	resp, _ := http.Get("https://www.engadget.com/2017/07/10/google-highlights-pirate-sites/")
	doc, err := goreadly.ParseResponse(resp)
	if err != nil {
		panic(err)
	}
	fmt.Println(doc.Title)
	fmt.Println(doc.Body)
}