Documentation ¶
Index ¶
- func AsycChapter(ResultChan chan chan Chapter, chapter chan Chapter)
- func GenerateCover(this BookInfo)
- func KindlegenCmd(args ...string) *exec.Cmd
- func ReadAllString(filename string) string
- func TestContainVolume(src string) bool
- func WriteFile(filename string, data []byte) error
- type BookInfo
- type Chapter
- type EBookDLInterface
- type Ebook23US
- type Ebook999XS
- func (this Ebook999XS) DownloadChapters(Bi BookInfo, proxy string) BookInfo
- func (this Ebook999XS) DownloaderChapter(ResultChan chan chan Chapter, pc ProxyChapter, wg *sync.WaitGroup)
- func (this Ebook999XS) GetBookInfo(bookid string, proxy string) BookInfo
- func (this Ebook999XS) GetChapterContent(pc ProxyChapter) Chapter
- type EbookXSBiquge
- func (this EbookXSBiquge) DownloadChapters(Bi BookInfo, proxy string) BookInfo
- func (this EbookXSBiquge) DownloaderChapter(ResultChan chan chan Chapter, pc ProxyChapter, wg *sync.WaitGroup)
- func (this EbookXSBiquge) GetBookInfo(bookid string, proxy string) BookInfo
- func (this EbookXSBiquge) GetChapterContent(pc ProxyChapter) Chapter
- type ProxyChapter
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsycChapter ¶ added in v1.6.0
AsycChapter
func KindlegenCmd ¶ added in v1.2.0
func TestContainVolume ¶ added in v1.6.0
检测是 第一个 dt标签是否包含 “正文卷”,如果不包含就表示是分卷
Types ¶
type BookInfo ¶
type BookInfo struct { Name string Author string Description string IsMobi bool //当为true的时候生成mobi IsAzw3 bool //当为true的时候生成azw3, HasVolume bool //是否有小说分卷,默认为false;当设置为true的时候,Volumes里面需要包含分卷信息 Volumes []Volume //小说分卷信息,一般不设置 Chapters []Chapter //小说章节信息 }
func (*BookInfo) ChangeVolumeState ¶ added in v1.6.0
设置 是否包含分卷信息 func ChangeVolumeState
func (BookInfo) PrintVolumeInfo ¶ added in v1.6.0
func (this BookInfo) PrintVolumeInfo()
func (*BookInfo) SetKindleEbookType ¶ added in v1.5.0
设置生成mobi格式,或者生成awz3格式 现在设置,mobi和awz3格式不能同时设置为true
func (BookInfo) VolumeState ¶ added in v1.6.0
返回 HasVolume的状态,true,false
type EBookDLInterface ¶ added in v1.4.0
type EBookDLInterface interface { GetBookInfo(bookid string, proxy string) BookInfo //获取小说的所有信息,包含小说名,作者,简介等信息 DownloaderChapter(ResultChan chan chan Chapter, pc ProxyChapter, wg *sync.WaitGroup) DownloadChapters(Bi BookInfo, proxy string) BookInfo }
interface
type Ebook23US ¶ added in v1.6.0
type Ebook23US struct {
Url string
}
顶点小说网 23us.la
func (Ebook23US) DownloadChapters ¶ added in v1.6.0
根据每个章节的 url连接,下载每章对应的内容Content当中
func (Ebook23US) DownloaderChapter ¶ added in v1.6.0
func (this Ebook23US) DownloaderChapter(ResultChan chan chan Chapter, pc ProxyChapter, wg *sync.WaitGroup)
func DownloaderChapter(ResultChan chan chan Chapter)
type Ebook999XS ¶ added in v1.4.0
type Ebook999XS struct {
Url string
}
999小说网 999xs.com
func New999XS ¶ added in v1.4.0
func New999XS() Ebook999XS
func (Ebook999XS) DownloadChapters ¶ added in v1.4.0
func (this Ebook999XS) DownloadChapters(Bi BookInfo, proxy string) BookInfo
根据每个章节的 url连接,下载每章对应的内容Content当中
func (Ebook999XS) DownloaderChapter ¶ added in v1.6.0
func (this Ebook999XS) DownloaderChapter(ResultChan chan chan Chapter, pc ProxyChapter, wg *sync.WaitGroup)
func DownloaderChapter(ResultChan chan chan Chapter)
func (Ebook999XS) GetBookInfo ¶ added in v1.4.0
func (this Ebook999XS) GetBookInfo(bookid string, proxy string) BookInfo
func (Ebook999XS) GetChapterContent ¶ added in v1.4.0
func (this Ebook999XS) GetChapterContent(pc ProxyChapter) Chapter
type EbookXSBiquge ¶ added in v1.4.0
type EbookXSBiquge struct {
Url string
}
新笔趣阁 xsbiquge.com
func NewXSBiquge ¶ added in v1.4.0
func NewXSBiquge() EbookXSBiquge
func (EbookXSBiquge) DownloadChapters ¶ added in v1.4.0
func (this EbookXSBiquge) DownloadChapters(Bi BookInfo, proxy string) BookInfo
根据每个章节的 url连接,下载每章对应的内容Content当中
func (EbookXSBiquge) DownloaderChapter ¶ added in v1.6.0
func (this EbookXSBiquge) DownloaderChapter(ResultChan chan chan Chapter, pc ProxyChapter, wg *sync.WaitGroup)
func DownloaderChapter(ResultChan chan chan Chapter)
func (EbookXSBiquge) GetBookInfo ¶ added in v1.4.0
func (this EbookXSBiquge) GetBookInfo(bookid string, proxy string) BookInfo
func (EbookXSBiquge) GetChapterContent ¶ added in v1.4.0
func (this EbookXSBiquge) GetChapterContent(pc ProxyChapter) Chapter
type ProxyChapter ¶ added in v1.3.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.