Categorygithub.com/ying32/readability
modulepackage
0.0.0-20181101005241-a6e2f94de749
Repository: https://github.com/ying32/readability.git
Documentation: pkg.go.dev

# README

readability

readability for golang

Golang版本是根据readabiliity for node.js以及readability for python所改写,并加入了些自己的,比如支持gzip等。

引用的第三方包

github.com/PuerkitoBio/goquery
github.com/axgle/mahonia

使用方法


package main

import (
	"fmt"

	"github.com/ying32/readability"
)

func main() {
    test, err := readability.NewReadability("http://wd.leiting.com/home/news/news_detail.php?id=599")
    if err != nil {
	fmt.Println("failed.", err)
	return
    }
    test.Parse()
    fmt.Println(test.Title)
    fmt.Println(test.Content)
}

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author