Documentation ¶
Index ¶
- Constants
- func DownloadImage(url, referer, folderPath string)
- func GetImageLink(url string, selector string) []string
- func GetImageLinkInContainer(url, containerSelector string) []string
- func GetTextLink(url string) map[string]string
- func GetTextLinkInContainer(url, containerSelector string) map[string]string
- func IsURL(url string) bool
- func ReadHtml(url string) *goquery.Document
Constants ¶
View Source
const ( PageInfoFile = "pageinfo" T2cyComUrl = "https://t2cy.com" CosplayUri = "/acg/cos" CosplayPagerTemplate = "/index_%v.html" )
View Source
const (
UA = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"
)
Variables ¶
This section is empty.
Functions ¶
func DownloadImage ¶
func DownloadImage(url, referer, folderPath string)
func GetImageLink ¶
func GetImageLinkInContainer ¶
func GetTextLink ¶
func GetTextLinkInContainer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.