Documentation ¶
Index ¶
- Variables
- func BookInfo(BookURL string) (s *store.Store, err error)
- func Chapter(BookURL string) (content []string, err error)
- func ChromedpBookInfo(BookURL string, logfile string) (s *store.Store, err error)
- func ClosePhantomJS()
- func InitPhantomJS()
- func PhBookInfo(BookURL string) (s *store.Store, err error)
- func PhChapter(BookURL string) (content []string, err error)
- func SingleSpace(s string) (r string)
- type ChaperSearchResult
- type ErrMethodMissing
- type ErrUnsupportSite
- type SiteA
Constants ¶
This section is empty.
Variables ¶
View Source
var Sitepool = []SiteA{
qidian,
wwww81newcom,
dingdian,
biquge1,
biquge2,
biquge3,
}
Functions ¶
func ChromedpBookInfo ¶
func ClosePhantomJS ¶
func ClosePhantomJS()
func InitPhantomJS ¶
func InitPhantomJS()
func SingleSpace ¶
Types ¶
type ChaperSearchResult ¶
func Search ¶
func Search(s string) (result []ChaperSearchResult, err error)
type ErrMethodMissing ¶
type ErrMethodMissing struct {
Site *SiteA
}
func (ErrMethodMissing) Error ¶
func (e ErrMethodMissing) Error() string
type ErrUnsupportSite ¶
type ErrUnsupportSite struct {
Site string
}
func (ErrUnsupportSite) Error ¶
func (e ErrUnsupportSite) Error() string
type SiteA ¶
type SiteA struct { Name string // 站点名称 HomePage string // 站点首页 // match url, look that https://godoc.org/path#Match Match []string // search book on site Search func(s string) (result []ChaperSearchResult, err error) // parse fiction info by page body BookInfo func(body io.Reader) (s *store.Store, err error) // parse fiction chaper content by page body Chapter func(body io.Reader) (content []string, err error) }
Click to show internal directories.
Click to hide internal directories.