Documentation ¶
Index ¶
- Constants
- Variables
- func BuildSearching(s string) string
- func FetchBgmTVUrl(page string) (url string, err error)
- func InnerTextSafety(n *html.Node) string
- func ListScrape(searchstr string, t LsTyp, searchls bool) (res any, err error)
- func Scrape(searchstr string, opt Option) (url, bgmUrl string, isrss bool, err error)
- type Item
- type LsTyp
- type Option
- type RssGroup
Constants ¶
View Source
const ( Ls = 1 LSGroup = 2 )
View Source
const ( MikanRssLiXpath = `/html/body[@class='main']/ div[@id='sk-container']/ div[@class='central-container']/ ul[@class='list-inline an-ul']/li` BgmXpathExp = `` /* 141-byte string literal not displayed */ )
Variables ¶
View Source
var ResourceAPIs = map[string]string{
"search": "/Home/Search?searchstr=",
}
Functions ¶
func BuildSearching ¶
func FetchBgmTVUrl ¶
func InnerTextSafety ¶
InnerTextSafety avoid nil pointer panic
Types ¶
Click to show internal directories.
Click to hide internal directories.