Documentation ¶
Index ¶
- func AppendToEpub(e *epub.Epub, c chapter)
- func Filename(name string) string
- func GetLinks(url *urllib.URL, selector string, limit, offset int, reverse, include bool) ([]link, string, chapter, error)
- func GetPath(elm *goquery.Selection) string
- func NewChapter(body, name, author, content string, subChapters []chapter, ...) chapter
- func NewChapterFromURL(url, linkName string, configs []*ScrapeConfig, index int, ...) chapter
- func NewEmptyChapter() chapter
- func NewLink(href, text string, date *time.Time) link
- func NewProgress(links []link, parent string, depth int) progress
- func ToEpub(c chapter, filename string) string
- func ToHtml(c chapter, filename string) string
- func ToHtmlString(c chapter) string
- func ToMarkdown(c chapter, filename string) string
- func ToMarkdownString(c chapter) string
- func ToMobi(c chapter, filename string) string
- type ScrapeConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToEpub ¶
func NewChapter ¶
func NewChapter(body, name, author, content string, subChapters []chapter, config *ScrapeConfig) chapter
func NewChapterFromURL ¶
func NewChapterFromURL(url, linkName string, configs []*ScrapeConfig, index int, updateProgressBarName func(index int, name string)) chapter
func NewEmptyChapter ¶
func NewEmptyChapter() chapter
func NewProgress ¶
func ToHtmlString ¶
func ToHtmlString(c chapter) string
func ToMarkdown ¶
func ToMarkdownString ¶
func ToMarkdownString(c chapter) string
Types ¶
type ScrapeConfig ¶
type ScrapeConfig struct { Depth int Selector string Quiet bool Limit int Offset int Reverse bool Delay int Threads int Include bool ImagesOnly bool UseLinkName bool }
func NewScrapeConfig ¶
func NewScrapeConfig() *ScrapeConfig
func NewScrapeConfigFake ¶
func NewScrapeConfigFake() *ScrapeConfig
func NewScrapeConfigNoInclude ¶
func NewScrapeConfigNoInclude() *ScrapeConfig
func NewScrapeConfigs ¶
func NewScrapeConfigs(selectors []string) []*ScrapeConfig
func NewScrapeConfigsAjin ¶
func NewScrapeConfigsAjin() []*ScrapeConfig
func NewScrapeConfigsWikipedia ¶
func NewScrapeConfigsWikipedia() []*ScrapeConfig
Click to show internal directories.
Click to hide internal directories.