Documentation ¶
Index ¶
Constants ¶
View Source
const ( BASE_URL = "https://www.wenku8.net/book/" DEFAULT_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36" SEARCH_URL = "https://www.wenku8.net/modules/article/search.php" TOP_URL = "https://www.wenku8.net/modules/article/toplist.php" )
Variables ¶
View Source
var ( Cookie string = "" UserAgent string = "" /* 139-byte string literal not displayed */ )
Functions ¶
func GetChapterContent ¶
Types ¶
type Chapter ¶
type Chapter struct { Index int `json:"index"` Title string `json:"title"` Url string `json:"url"` Content *ChapterContent `json:"content"` }
func GetChapterArray ¶
type ChapterContent ¶
type CommandOptions ¶
type Novel ¶
type Novel struct { NovelId int `json:"novel_id"` NovelName string `json:"novel_name"` Cover string `json:"cover"` Library string `json:"library"` Author string `json:"author"` Status string `json:"status"` LastUpdateTime string `json:"last_update_time"` Length string `json:"length"` Tag string `json:"tag"` RecentChapter string `json:"recent_chapter"` Desc string `json:"desc"` CatalogueUrl string `json:"catalogue_url"` }
func GetNovelDetails ¶
GetNovelDetails retrieves the novel details based on novelId
type PageResult ¶
func GetTop ¶
func GetTop(topSoftType enums.TopSortType, page string) (*PageResult, error)
func Search ¶
func Search(str string, searchType enums.SearchType, page string) (*PageResult, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.