Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 576 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 576 Bytes

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)
}