Documentation ¶
Index ¶
- Constants
- Variables
- func Cookies() []*http.Cookie
- func CurrentURL() string
- func DontSave() bool
- func DownloadWork(u, name string)
- func Encode() string
- func Formats() []string
- func GetAllNodes(sel string, nodes *[]*cdp.Node) chromedp.Action
- func GetInnerHTML(sel string, val *string) chromedp.Action
- func GetLinkList(ctx context.Context, u string) []string
- func GetNodes(sel string, nodes *[]*cdp.Node) chromedp.Action
- func GetString(sel string, val *string) chromedp.Action
- func GetWork(ctx context.Context, u string) (cdb.Book, error)
- func IsPodfic() bool
- func NoDownloads() bool
- func Page(u string) ([]cdb.Book, error)
- func ParseUrl(u string) *url.URL
- func Scrape(u string) ([]cdb.Book, error)
- func Search(u string) ([]cdb.Book, error)
- func SearchParams() []string
- func Sleep(d time.Duration) chromedp.Action
- func SortAndFilter(u string) ([]cdb.Book, error)
- func SortAndFilterParams() []string
- type Host
- type Path
- type Query
Constants ¶
View Source
const ( Title = `h2.title` Author = `h3.byline a` Series = `dd.series .position` Comments = `.preface .summary .userstuff` Ships = `dd.relationship a` Tags = `dd.freeform a` Fandom = `dd.fandom a` Pubdate = `dd.published` ListLink = `li.work h4.heading a:first-of-type` RelatedWorks = `ul.associations li a` Downloads = `li.download ul li a` )
Variables ¶
View Source
var NoTitleErr = errors.New("no title")
Functions ¶
func CurrentURL ¶
func CurrentURL() string
func DownloadWork ¶
func DownloadWork(u, name string)
func NoDownloads ¶
func NoDownloads() bool
func SearchParams ¶
func SearchParams() []string
func Sleep ¶
Code taken from https://github.com/chromedp/chromedp/blob/v0.9.2/chromedp.go#L742
func SortAndFilterParams ¶
func SortAndFilterParams() []string
Types ¶
Click to show internal directories.
Click to hide internal directories.