reader

package
v0.0.0-...-8dbf7a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2021 License: MIT, MIT Imports: 32 Imported by: 3

README

grab

非结构式数据抓取服务

core

核心代码

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BookContReplace

func BookContReplace(html string) string

BookContReplace 小说内容正文替换标签

func CheckStrIsLink(urlStr string) error

CheckStrIsLink 检查字符串是否支持的链接

func ContentBuildHTML

func ContentBuildHTML(content, title string) string

ContentBuildHTML 内容合成 html

func ConvertStrEncode

func ConvertStrEncode(inStr, inCharset, outCharset string) string

字符串转编码

func DecodeURL

func DecodeURL(str string) (string, error)

DecodeURL 把url decode

func EncodeURL

func EncodeURL(str string) string

EncodeURL 把url encode

func FindContentForHTML

func FindContentForHTML(htmlStr, find string) (string, error)

FindContentForHTML 从html字符串中获取内容 通过 .class 或 #id 或 name

func FindContentHTML

func FindContentHTML(htmlStr, find string) (string, error)

FindContentHTML 获得纯正文html

func FindString

func FindString(pattern, value, key string) string

FindString 数据匹配

func GetActicleByContent

func GetActicleByContent(html string) (article *html2article.Article, err error)

GetActicleByContent 由Html返回*html2article.Article

func GetActicleByHTML

func GetActicleByHTML(html string) (article *html2article.Article, err error)

GetActicleByHTML 由Html返回*html2article.Article

func GetActicleForHTML

func GetActicleForHTML(html string) (article *html2article.Article, err error)

GetActicleForHTML 由Html返回 *html2article.Article (纯原文)

func GetCatalogHash

func GetCatalogHash(list Catalog) string

GetCatalogHash get 获取目录hash

func GetHTML

func GetHTML(urlStr, find string) (htmlStr string, err error)

GetHTML 获取html链接地址中的内容

func GetHTMLByChromedp

func GetHTMLByChromedp(urlStr string) (htmlStr string, err error)

GetHTMLByChromedp 通过运行浏览器代理的方式获取被渲染后的网站内容

func GetHTMLOrCache

func GetHTMLOrCache(urlStr, find string) (string, error)

GetHTMLOrCache 获取html链接地址中的内容(进行本地化数据缓存)

func GetHash

func GetHash(s string) string

GetHash 获取字符串hash

func GetListHash

func GetListHash(list List) string

GetListHash get

func GetMd5String

func GetMd5String(s string) string

GetMd5String 生成32位md5字串路径

func GetPathLevel

func GetPathLevel(wxto string) (level int32)

GetPathLevel 获取页面地址的等级

func GetSectionByContent

func GetSectionByContent(content string) (sec []string)

GetSectionByContent 通过正文获取段落拆分

func GetTag

func GetTag(urlStr string) string

GetTag 获取特点

func GetTagMore

func GetTagMore(urlStr string) string

GetTagMore 获取特点

func GetURLDrive

func GetURLDrive(url string) (drive, key string)

GetURLDrive 获取链接地址的解释器

func GetURLStringParam

func GetURLStringParam(urlStr, key string) (string, error)

GetURLStringParam 从url字符串中获取指定问号后的参数 urlStr := "/pages/catalog?drive=xbiquge&url=aHR0cDovL3d3dy54YmlxdWdlLmxhLzE1LzE1MDIxLw%3D%3D" 返回 aHR0cDovL3d3dy54YmlxdWdlLmxhLzE1LzE1MDIxLw==

func ImagesBuildHTML

func ImagesBuildHTML(images []string) string

ImagesBuildHTML 图片组转html

func InArr

func InArr(str string, arr []string) bool

InArr 字符串被包含

func InSliceIface

func InSliceIface(v interface{}, sl []interface{}) bool

InSliceIface checks given interface in interface slice.

func Intersection

func Intersection(arr1 []string, arr2 []string) []string

Intersection 字符串交集

func Jaccard

func Jaccard(arr1 []string, arr2 []string) float64

Jaccard 杰卡德(Jaccard)相似系数

func JaccardMateGetURL

func JaccardMateGetURL(url, demo1, demo2, to1 string) (string, bool)

JaccardMateGetURL 杰卡德(Jaccard)相似系数 匹配出目标url * 快速获取固定结构动态链接 url 为要验证参考的链接地址 demo1 有效的学习链接地址1,与url具有相同结构 demo2 有效的学习链接地址2,与url具有相同结构 to1 有效果的目标链接地址1, 将url变量替换到to1结构中 (to1为空时,保持原有结构)

todo t.Fatal(JaccardMateGetURL(`http://book.zongheng.com/book/book/658887.html`, `http://book.zongheng.com/book/769150.html`, `http://book.zongheng.com/book/316562.html`, `http://book.zongheng.com/showchapter/769150.html`)) 相同值不同位置时抽风了。。

func JaccardMateGetURLMore

func JaccardMateGetURLMore(url, demo1, demo2, to1 string) (string, bool)

JaccardMateGetURLMore 杰卡德(Jaccard)相似系数 匹配出目标url * 快速获取固定结构动态链接 url 为要验证参考的链接地址 demo1 有效的学习链接地址1,与url具有相同结构 demo2 有效的学习链接地址2,与url具有相同结构 to1 有效果的目标链接地址1, 将url变量替换到to1结构中 (to1为空时,保持原有结构)

todo t.Fatal(JaccardMateGetURL(`http://book.zongheng.com/book/book/658887.html`, `http://book.zongheng.com/book/769150.html`, `http://book.zongheng.com/book/316562.html`, `http://book.zongheng.com/showchapter/769150.html`)) 相同值不同位置时抽风了。。

func MarkDownFormatContent

func MarkDownFormatContent(content string) string

MarkDownFormatContent 通过markdown语法格式化内容

func Nonion

func Nonion(arr1 []string, arr2 []string) (ret []string)

Nonion 字符串非集

func ReplaceImageServe

func ReplaceImageServe(body string) (string, error)

ReplaceImageServe 替换图片服务地址(由服务器转抓取)

func SaveHTML

func SaveHTML(urlStr, saveName string) (n int64, err error)

SaveHTML 保存HTML到本地

func Score2Level

func Score2Level(x int) int

Score2Level 积分阶梯

func SelectString

func SelectString(pattern, value string) map[string]string

SelectString 数组匹配

func SliceShuffle

func SliceShuffle(slice []interface{}) []interface{}

SliceShuffle shuffles a slice. 重组

func SliceUnique

func SliceUnique(slice []interface{}) (uniqueslice []interface{})

SliceUnique cleans repeated values in slice. 去重

func Substr

func Substr(str string, start int, end int) string

Substr 截取字符串 start 起点下标 end 终点下标(不包括)

func Union

func Union(arr1 []string, arr2 []string) (ret []string)

Union 字符串并集

Types

type Aimeizi5Reader

type Aimeizi5Reader struct {
}

Aimeizi5Reader 顶点小说 (盗版小说网站)

func (Aimeizi5Reader) GetCatalog

func (r Aimeizi5Reader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (Aimeizi5Reader) GetCategories

func (r Aimeizi5Reader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (Aimeizi5Reader) GetInfo

func (r Aimeizi5Reader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (Aimeizi5Reader) GetList

func (r Aimeizi5Reader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (Aimeizi5Reader) Search

func (r Aimeizi5Reader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type ArticleReader

type ArticleReader struct {
}

ArticleReader 顶点小说 (盗版小说网站)

func (ArticleReader) GetCatalog

func (r ArticleReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (ArticleReader) GetInfo

func (r ArticleReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

type BaiduReader

type BaiduReader struct {
}

BaiduReader U小说阅读网 (盗版小说网站)

func (BaiduReader) GetCatalog

func (r BaiduReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (BaiduReader) GetCategories

func (r BaiduReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (BaiduReader) GetInfo

func (r BaiduReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (BaiduReader) GetList

func (r BaiduReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (BaiduReader) Search

func (r BaiduReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type BiqugeinfoReader

type BiqugeinfoReader struct {
}

BiqugeinfoReader 顶点小说 (盗版小说网站)

func (BiqugeinfoReader) GetCatalog

func (r BiqugeinfoReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (BiqugeinfoReader) GetCategories

func (r BiqugeinfoReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (BiqugeinfoReader) GetInfo

func (r BiqugeinfoReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (BiqugeinfoReader) GetList

func (r BiqugeinfoReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (BiqugeinfoReader) Search

func (r BiqugeinfoReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type BiquyunReader

type BiquyunReader struct {
}

BiquyunReader U小说阅读网 (盗版小说网站)

func (BiquyunReader) GetCatalog

func (r BiquyunReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (BiquyunReader) GetCategories

func (r BiquyunReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (BiquyunReader) GetInfo

func (r BiquyunReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (BiquyunReader) GetList

func (r BiquyunReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (BiquyunReader) Search

func (r BiquyunReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type BlogReader

type BlogReader struct {
}

BlogReader 常规博客(使用) html2article算法

func (BlogReader) GetCatalog

func (r BlogReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (BlogReader) GetInfo

func (r BlogReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

type BookReader

type BookReader struct {
}

BookReader 默认详细页匹配器

func (BookReader) GetCatalog

func (r BookReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取列表

func (BookReader) GetInfo

func (r BookReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

type BooktxtReader

type BooktxtReader struct {
}

BooktxtReader 顶点小说 (盗版小说网站)

func (BooktxtReader) GetCatalog

func (r BooktxtReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (BooktxtReader) GetCategories

func (r BooktxtReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (BooktxtReader) GetInfo

func (r BooktxtReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (BooktxtReader) GetList

func (r BooktxtReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (BooktxtReader) Search

func (r BooktxtReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type BooktxtnetReader

type BooktxtnetReader struct {
}

BooktxtnetReader 顶点小说 (盗版小说网站)

func (BooktxtnetReader) GetCatalog

func (r BooktxtnetReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (BooktxtnetReader) GetCategories

func (r BooktxtnetReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (BooktxtnetReader) GetInfo

func (r BooktxtnetReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (BooktxtnetReader) GetList

func (r BooktxtnetReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (BooktxtnetReader) Search

func (r BooktxtnetReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type BxksReader

type BxksReader struct {
}

BxksReader www.jininggeyin.com (盗版小说网站)

func (BxksReader) GetCatalog

func (r BxksReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (BxksReader) GetCategories

func (r BxksReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (BxksReader) GetInfo

func (r BxksReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (BxksReader) GetList

func (r BxksReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (BxksReader) Search

func (r BxksReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type BxwxReader

type BxwxReader struct {
}

BxwxReader 笔下文学 (盗版小说网站)

func (BxwxReader) GetCatalog

func (r BxwxReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (BxwxReader) GetCategories

func (r BxwxReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (BxwxReader) GetInfo

func (r BxwxReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (BxwxReader) GetList

func (r BxwxReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (BxwxReader) Search

func (r BxwxReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type Card

type Card struct {
	Title  string   `json:"title"`  // 标题
	WxTo   string   `json:"wxto"`   // 小程序跳转到目标页
	Intro  string   `json:"intro"`  //介绍
	Type   string   `json:"type"`   // card展示形式 media card text image images link
	Cover  string   `json:"cover"`  // 封面图片
	Images []string `json:"images"` // 图片组效果时图片列表
	From   string   `json:"from"`
	AppID  string   `json:"appid"`
}

Card 使用卡片代替链接

func LinksToCards

func LinksToCards(links []Link, page, drive string) (cards []Card)

LinksToCards 链接组转换成卡片组

type Catalog

type Catalog struct {
	Title         string `json:"title"`
	Cards         []Card //`json:"links"`
	SourceURL     string `json:"source_url"`     // 数据抓取时,统一声明数据来源
	Hash          string `json:"hash"`           // 当前目录 Hash
	Previous      Link   `json:"previous"`       // 如果有上一页
	Next          Link   `json:"next"`           // 如果有下一页
	SearchSupport bool   `json:"search_support"` // 搜索支持(实现第三方站内搜索)
}

* * base.go 放一些基础数据结构类,用于制定内外数据结构

Catalog 第三方资源目录(用户可任意订阅此目录)

type Content

type Content struct {
	Title     string   `json:"title"`      // 内容标题
	SourceURL string   `json:"source_url"` // 数据来源
	Author    string   `json:"author"`
	PubAt     string   `json:"pub_at"`   //发布时间
	Previous  Link     `json:"previous"` // 上一章
	Next      Link     `json:"next"`     // 下一章
	Contents  []string `json:"contents"` // text正文
	Content   string   `json:"content"`  //新闻(图文)类内容正文
	Images    string   `json:"images"`
	SRC       string   `json:"src"`
	Typw      string   `json:"type"`
}

Content reader 返回正文

type CustomReader

type CustomReader struct {
}

CustomReader 自定义阅读器

func (CustomReader) GetCatalog

func (r CustomReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取目录

func (CustomReader) GetInfo

func (r CustomReader) GetInfo()

GetInfo 获取详情

type DefaultGuide

type DefaultGuide struct {
}

DefaultGuide 向导

func (DefaultGuide) GetCategories

func (r DefaultGuide) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (DefaultGuide) GetList

func (r DefaultGuide) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (DefaultGuide) Search

func (r DefaultGuide) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type DefaultReader

type DefaultReader struct {
}

DefaultReader 默认阅读器

func (DefaultReader) GetCatalog

func (r DefaultReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取列表

func (DefaultReader) GetInfo

func (r DefaultReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

type DemoItem

type DemoItem struct {
	Title    string `json:"title"`
	URL      string `json:"url"`
	Category string `json:"category"`
}

DemoItem 示例详细

func ArticleDemoList

func ArticleDemoList() []DemoItem

ArticleDemoList 文章示例列表

func BookDemoList

func BookDemoList() []DemoItem

BookDemoList 小说示例列表

func RssDemoList

func RssDemoList() []DemoItem

RssDemoList Rss示例列表

type FetchContent

type FetchContent struct {
	Title     string `json:"title"`
	Content   string `json:"content"`
	PubAt     string `json:"pub_at"`
	SourceURL string `json:"source_url"` // 数据抓取时,统一声明数据来源
}

FetchContent 正文

func GetContent

func GetContent(urlStr string) (cont FetchContent, err error)

GetContent 读url中的正文 解释返回 markdown 格式正文

func GetHTMLContent

func GetHTMLContent(urlStr, find string) (cont FetchContent, err error)

GetHTMLContent 获取html链接地址中的链接

type FumanReader

type FumanReader struct {
}

FumanReader 腐漫漫画 (盗版漫画网站)

func (FumanReader) GetCatalog

func (r FumanReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (FumanReader) GetCategories

func (r FumanReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (FumanReader) GetInfo

func (r FumanReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (FumanReader) GetList

func (r FumanReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (FumanReader) Search

func (r FumanReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type GithubReader

type GithubReader struct {
}

GithubReader github博客(使用) html2article算法

func (GithubReader) GetCatalog

func (r GithubReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (GithubReader) GetInfo

func (r GithubReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

type Guide

type Guide interface {
	// 第三方平台分类列表(多是我们自行定义)
	GetCategories(string) (Catalog, error)
	// 获取第三方目录列表
	GetList(string) (Catalog, error)
	// 实现第三方平台搜索接口 (允许在分类设置不支持搜索,允许功能不存在,但是不能不实现该接口)
	Search(string) (Catalog, error)
}

Guide 第三方平台资源引导 *

type HaimaobaReader

type HaimaobaReader struct {
}

HaimaobaReader 顶点小说 (盗版小说网站)

func (HaimaobaReader) GetCatalog

func (r HaimaobaReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (HaimaobaReader) GetCategories

func (r HaimaobaReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (HaimaobaReader) GetInfo

func (r HaimaobaReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (HaimaobaReader) GetList

func (r HaimaobaReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (HaimaobaReader) Search

func (r HaimaobaReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type HanmankuReader

type HanmankuReader struct {
}

HanmankuReader 绅士漫画网 (盗版漫画网站)

func (HanmankuReader) GetCatalog

func (r HanmankuReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (HanmankuReader) GetCategories

func (r HanmankuReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (HanmankuReader) GetInfo

func (r HanmankuReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (HanmankuReader) GetList

func (r HanmankuReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (HanmankuReader) Search

func (r HanmankuReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type HanmanwoReader

type HanmanwoReader struct {
}

HanmanwoReader 绅士漫画网 (盗版漫画网站)

func (HanmanwoReader) GetCatalog

func (r HanmanwoReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (HanmanwoReader) GetCategories

func (r HanmanwoReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (HanmanwoReader) GetInfo

func (r HanmanwoReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (HanmanwoReader) GetList

func (r HanmanwoReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (HanmanwoReader) Search

func (r HanmanwoReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type HongxiuReader

type HongxiuReader struct {
}

HongxiuReader 红袖添香

func (HongxiuReader) GetCatalog

func (r HongxiuReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (HongxiuReader) GetCategories

func (r HongxiuReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有自定义分类(写死)

func (HongxiuReader) GetChaptersLinksByHTML

func (r HongxiuReader) GetChaptersLinksByHTML(bookID string) (links []Link, err error)

GetChaptersLinksByHTML 获取章节链接列表

func (HongxiuReader) GetInfo

func (r HongxiuReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取章节正文内容

func (HongxiuReader) GetList

func (r HongxiuReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取分类书籍列表

func (HongxiuReader) Search

func (r HongxiuReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type Item

type Item struct {
	Title string `json:"title"`
	WxTo  string `json:"wxto"`
	Intro string `json:"intro"`
	Type  string `json:"type"`
}

Item 小程序授受参数明细

func GetAbouts

func GetAbouts() []Item

GetAbouts 获得关于我们的介绍

func GetBooks

func GetBooks(url string) []Item

GetBooks 小说目录列表

func GetChapter

func GetChapter(url string) []Item

GetChapter 小说章节详细

func GetChapters

func GetChapters(url string) []Item

GetChapters 小说章节列表

func GetClassify

func GetClassify() []Item

GetClassify 发现分类

func GetDrives

func GetDrives() []Item

GetDrives 获取所有解释引擎

func GetRanks

func GetRanks() []Item

GetRanks 各类榜单

func GetResource

func GetResource(url string) []Item

GetResource 获得资源详细(分类)

func GetResources

func GetResources() []Item

GetResources 自定义资源列表(支持平台目录)

func GetTopics

func GetTopics() []Item

GetTopics 获取专题列表

type JxReader

type JxReader struct {
}

JxReader 笔趣阁qula (盗版小说网站)

func (JxReader) GetCatalog

func (r JxReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (JxReader) GetCategories

func (r JxReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (JxReader) GetInfo

func (r JxReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (JxReader) GetList

func (r JxReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (JxReader) Search

func (r JxReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type KanmeiziReader

type KanmeiziReader struct {
}

KanmeiziReader 顶点小说 (盗版小说网站)

func (KanmeiziReader) GetCatalog

func (r KanmeiziReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (KanmeiziReader) GetCategories

func (r KanmeiziReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (KanmeiziReader) GetInfo

func (r KanmeiziReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (KanmeiziReader) GetList

func (r KanmeiziReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (KanmeiziReader) Search

func (r KanmeiziReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type LaosijixsReader

type LaosijixsReader struct {
}

LaosijixsReader 顶点小说 (盗版小说网站)

func (LaosijixsReader) GetCatalog

func (r LaosijixsReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (LaosijixsReader) GetCategories

func (r LaosijixsReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (LaosijixsReader) GetInfo

func (r LaosijixsReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (LaosijixsReader) GetInfoBodyText

func (r LaosijixsReader) GetInfoBodyText(urlStr string) (html, body string, err error)

GetInfoBodyText 获取详细内容

func (LaosijixsReader) GetInfox

func (r LaosijixsReader) GetInfox(urlStr string) (ret Content, err error)

GetInfox 获取详细内容

func (LaosijixsReader) GetList

func (r LaosijixsReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (LaosijixsReader) Search

func (r LaosijixsReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type LearnkuReader

type LearnkuReader struct {
}

LearnkuReader 常规博客(使用) html2article算法

func (LearnkuReader) GetCatalog

func (r LearnkuReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (LearnkuReader) GetInfo

func (r LearnkuReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

type Link struct {
	// Basic
	Title string `json:"title"`
	URL   string `json:"url"`
	WxTo  string `json:"wxto"` // 小程序跳转到目标页
}

Link 链接

func Cleaning

func Cleaning(links []Link) (newlinks []Link)

Cleaning 清洗数据

func CleaningFrontLinkRepeat

func CleaningFrontLinkRepeat(links []Link) (newlinks []Link)

CleaningFrontLinkRepeat 清洗前面的数据(相同标题地址出来两次用后面的)

func CleaningFrontRepeat

func CleaningFrontRepeat(links []Link) (newlinks []Link)

CleaningFrontRepeat 清洗前面的数据(相同标题地址出来两次用后面的)

func GetLinkByHTML

func GetLinkByHTML(urlStr, html string) (links []Link, err error)

GetLinkByHTML 获取网页内容所有链接

func GetLinks(g *goquery.Document, link *url.URL) (links []Link)

GetLinks 获取链接地址 参考链接

func GetNextLink(links []Link) Link

GetNextLink 获取下一页或者下一章

func GetPreviousLink(links []Link) Link

GetPreviousLink 获取上一页或者上一章

type Links []Link

Links 链接排序(反序)

func (Links) Len

func (s Links) Len() int

func (Links) Less

func (s Links) Less(i, j int) bool

func (Links) Swap

func (s Links) Swap(i, j int)

type List

type List struct {
	// Basic
	Title     string `json:"title"`
	Links     []Link //`json:"links"`
	SourceURL string `json:"source_url"` // 数据抓取时,统一声明数据来源
	Hash      string `json:"hash"`
	Previous  Link   `json:"previous"`
	Next      Link   `json:"next"`
}

List 列表数据

func GetHTMLList

func GetHTMLList(urlStr, find string) (list List, err error)

GetHTMLList 获取指定URL指定元素里面的URL(所有)

type MLuoqiuReader

type MLuoqiuReader struct {
}

MLuoqiuReader 落秋中文网手机版 (盗版小说网站)

func (MLuoqiuReader) GetCatalog

func (r MLuoqiuReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (MLuoqiuReader) GetCategories

func (r MLuoqiuReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (MLuoqiuReader) GetInfo

func (r MLuoqiuReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (MLuoqiuReader) GetList

func (r MLuoqiuReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (MLuoqiuReader) Search

func (r MLuoqiuReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type ManhwaReader

type ManhwaReader struct {
}

ManhwaReader 顶点小说 (盗版小说网站)

func (ManhwaReader) GetCatalog

func (r ManhwaReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (ManhwaReader) GetCategories

func (r ManhwaReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (ManhwaReader) GetInfo

func (r ManhwaReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (ManhwaReader) GetList

func (r ManhwaReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (ManhwaReader) Search

func (r ManhwaReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type ManwuyuReader

type ManwuyuReader struct {
}

ManwuyuReader 顶点小说 (盗版小说网站)

func (ManwuyuReader) GetCatalog

func (r ManwuyuReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (ManwuyuReader) GetCategories

func (r ManwuyuReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (ManwuyuReader) GetInfo

func (r ManwuyuReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (ManwuyuReader) GetList

func (r ManwuyuReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (ManwuyuReader) Search

func (r ManwuyuReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type McmsscReader

type McmsscReader struct {
}

McmsscReader www.mcmssc.com (盗版小说网站)

func (McmsscReader) GetCatalog

func (r McmsscReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (McmsscReader) GetCategories

func (r McmsscReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (McmsscReader) GetInfo

func (r McmsscReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (McmsscReader) GetList

func (r McmsscReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (McmsscReader) Search

func (r McmsscReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type Paoshu8Reader

type Paoshu8Reader struct {
}

Paoshu8Reader 顶点小说 (盗版小说网站)

func (Paoshu8Reader) GetCatalog

func (r Paoshu8Reader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (Paoshu8Reader) GetCategories

func (r Paoshu8Reader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (Paoshu8Reader) GetInfo

func (r Paoshu8Reader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (Paoshu8Reader) GetList

func (r Paoshu8Reader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (Paoshu8Reader) Search

func (r Paoshu8Reader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type QidianReader

type QidianReader struct {
}

QidianReader 纵横小说网

func (QidianReader) GetCatalog

func (r QidianReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (QidianReader) GetCategories

func (r QidianReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有自定义分类(写死)

func (QidianReader) GetChaptersLinksByJSON

func (r QidianReader) GetChaptersLinksByJSON(bookID string) (links []Link, err error)

GetChaptersLinksByJSON 获取章节链接列表

func (QidianReader) GetInfo

func (r QidianReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取章节正文内容

func (QidianReader) GetList

func (r QidianReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取分类书籍列表

func (QidianReader) Search

func (r QidianReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type Qkshu6Reader

type Qkshu6Reader struct {
}

Qkshu6Reader 去看书 (盗版小说网站)

func (Qkshu6Reader) GetCatalog

func (r Qkshu6Reader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (Qkshu6Reader) GetCategories

func (r Qkshu6Reader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (Qkshu6Reader) GetInfo

func (r Qkshu6Reader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (Qkshu6Reader) GetList

func (r Qkshu6Reader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (Qkshu6Reader) Search

func (r Qkshu6Reader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type QuReader

type QuReader struct {
}

QuReader 笔趣阁qula (盗版小说网站)

func (QuReader) GetCatalog

func (r QuReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (QuReader) GetCategories

func (r QuReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (QuReader) GetInfo

func (r QuReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (QuReader) GetList

func (r QuReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (QuReader) Search

func (r QuReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type QueryInfoReader

type QueryInfoReader struct {
}

QueryInfoReader 默认详细页匹配器

func (QueryInfoReader) GetInfo

func (r QueryInfoReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

type QueryListReader

type QueryListReader struct {
}

QueryListReader Rss列表匹配器

func (QueryListReader) GetList

func (r QueryListReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取Rss订阅接口文章列表

type QueryReader

type QueryReader struct {
	Body        string
	Loop        string
	ClearRepeat bool
	MatchingURL []string
	Reference   []string
	Next        bool
	Previous    bool
}

QueryReader JQ风格匹配器(返回News)

func (QueryReader) GetInfo

func (r QueryReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

type R2hmReader

type R2hmReader struct {
}

R2hmReader 顶点小说 (盗版小说网站)

func (R2hmReader) GetCatalog

func (r R2hmReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (R2hmReader) GetCategories

func (r R2hmReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (R2hmReader) GetInfo

func (r R2hmReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (R2hmReader) GetList

func (r R2hmReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (R2hmReader) Search

func (r R2hmReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type Reader

type Reader interface {
	// 获取目录
	GetCatalog(string) (Catalog, error)
	// 获取详情
	GetInfo(string) (Content, error)
}

Reader 目录资源阅读器 *输出第三方平台资源

func GetReader

func GetReader(drive string) Reader

GetReader 获取阅读器

type RssReader

type RssReader struct {
}

RssReader Rss 订阅工具

func (RssReader) GetCatalog

func (r RssReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (RssReader) GetInfo

func (r RssReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

type SeventeenKReader

type SeventeenKReader struct {
}

SeventeenKReader 纵横小说网

func (SeventeenKReader) GetCatalog

func (r SeventeenKReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (SeventeenKReader) GetCategories

func (r SeventeenKReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (SeventeenKReader) GetInfo

func (r SeventeenKReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (SeventeenKReader) GetList

func (r SeventeenKReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (SeventeenKReader) Search

func (r SeventeenKReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type ShugeReader

type ShugeReader struct {
}

ShugeReader U小说阅读网 (盗版小说网站)

func (ShugeReader) GetCatalog

func (r ShugeReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (ShugeReader) GetCategories

func (r ShugeReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (ShugeReader) GetInfo

func (r ShugeReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (ShugeReader) GetList

func (r ShugeReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (ShugeReader) Search

func (r ShugeReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type Soe8Reader

type Soe8Reader struct {
}

Soe8Reader U小说阅读网 (盗版小说网站)

func (Soe8Reader) GetCatalog

func (r Soe8Reader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (Soe8Reader) GetCategories

func (r Soe8Reader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (Soe8Reader) GetInfo

func (r Soe8Reader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (Soe8Reader) GetList

func (r Soe8Reader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (Soe8Reader) Search

func (r Soe8Reader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type SsmhReader

type SsmhReader struct {
}

SsmhReader 绅士漫画网 (盗版漫画网站)

func (SsmhReader) GetCatalog

func (r SsmhReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (SsmhReader) GetCategories

func (r SsmhReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (SsmhReader) GetInfo

func (r SsmhReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (SsmhReader) GetList

func (r SsmhReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (SsmhReader) Search

func (r SsmhReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type UxiaoshuoReader

type UxiaoshuoReader struct {
}

UxiaoshuoReader U小说阅读网 (盗版小说网站)

func (UxiaoshuoReader) GetCatalog

func (r UxiaoshuoReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (UxiaoshuoReader) GetCategories

func (r UxiaoshuoReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (UxiaoshuoReader) GetInfo

func (r UxiaoshuoReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (UxiaoshuoReader) GetList

func (r UxiaoshuoReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (UxiaoshuoReader) Search

func (r UxiaoshuoReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type WeijiaoshouReader

type WeijiaoshouReader struct {
}

WeijiaoshouReader 顶点小说 (盗版小说网站)

func (WeijiaoshouReader) GetCatalog

func (r WeijiaoshouReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (WeijiaoshouReader) GetCategories

func (r WeijiaoshouReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (WeijiaoshouReader) GetInfo

func (r WeijiaoshouReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (WeijiaoshouReader) GetList

func (r WeijiaoshouReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (WeijiaoshouReader) Search

func (r WeijiaoshouReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type XbiqugeReader

type XbiqugeReader struct {
}

XbiqugeReader U小说阅读网 (盗版小说网站)

func (XbiqugeReader) GetCatalog

func (r XbiqugeReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (XbiqugeReader) GetCategories

func (r XbiqugeReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (XbiqugeReader) GetInfo

func (r XbiqugeReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (XbiqugeReader) GetList

func (r XbiqugeReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (XbiqugeReader) Search

func (r XbiqugeReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type Xin18Reader

type Xin18Reader struct {
}

Xin18Reader www.jininggeyin.com (盗版小说网站)

func (Xin18Reader) GetCatalog

func (r Xin18Reader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (Xin18Reader) GetCategories

func (r Xin18Reader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (Xin18Reader) GetInfo

func (r Xin18Reader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (Xin18Reader) GetList

func (r Xin18Reader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (Xin18Reader) Search

func (r Xin18Reader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type Xs280Reader

type Xs280Reader struct {
}

Xs280Reader www.280xs.com (盗版顶点小说网站)

func (Xs280Reader) GetCatalog

func (r Xs280Reader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (Xs280Reader) GetCategories

func (r Xs280Reader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (Xs280Reader) GetInfo

func (r Xs280Reader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (Xs280Reader) GetList

func (r Xs280Reader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (Xs280Reader) Search

func (r Xs280Reader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type Xs7878Reader

type Xs7878Reader struct {
}

Xs7878Reader 7878小说 (盗版小说网站)

func (Xs7878Reader) GetCatalog

func (r Xs7878Reader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (Xs7878Reader) GetCategories

func (r Xs7878Reader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (Xs7878Reader) GetInfo

func (r Xs7878Reader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (Xs7878Reader) GetList

func (r Xs7878Reader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (Xs7878Reader) Search

func (r Xs7878Reader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type XxsyReader

type XxsyReader struct {
}

XxsyReader 纵横小说网

func (XxsyReader) GetCatalog

func (r XxsyReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (XxsyReader) GetCategories

func (r XxsyReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有自定义分类(写死)

func (XxsyReader) GetChaptersLinksByHTML

func (r XxsyReader) GetChaptersLinksByHTML(bookID string) (links []Link, err error)

GetChaptersLinksByHTML 获取章节链接列表

func (XxsyReader) GetInfo

func (r XxsyReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取章节正文内容

func (XxsyReader) GetList

func (r XxsyReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取分类书籍列表

func (XxsyReader) Search

func (r XxsyReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

type ZonghengReader

type ZonghengReader struct {
}

ZonghengReader 纵横小说网

func (ZonghengReader) GetCatalog

func (r ZonghengReader) GetCatalog(urlStr string) (list Catalog, err error)

GetCatalog 获取章节列表

func (ZonghengReader) GetCategories

func (r ZonghengReader) GetCategories(urlStr string) (list Catalog, err error)

GetCategories 获取所有分类

func (ZonghengReader) GetInfo

func (r ZonghengReader) GetInfo(urlStr string) (ret Content, err error)

GetInfo 获取详细内容

func (ZonghengReader) GetList

func (r ZonghengReader) GetList(urlStr string) (list Catalog, err error)

GetList 获取书籍列表列表

func (ZonghengReader) Search

func (r ZonghengReader) Search(keyword string) (list Catalog, err error)

Search 搜索资源

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL