mirror of
https://github.com/bestnite/bilinovel-downloader.git
synced 2025-10-25 16:51:01 +00:00
b0f8f31dcc1f2c15854f09c9840698b57741545f
This commit introduces new features for controlling the download process: - **Concurrency**: Users can now specify the number of concurrent volume downloads using the `--concurrency` flag. This significantly speeds up the download of entire novels. - **Headless Mode**: A `--headless` flag has been added to control whether the browser operates in headless mode (without a visible UI). This is useful for debugging or running in environments without a display. **Changes include:** - Updated `download` command to accept `--concurrency` and `--headless` flags. - Refactored `bilinovel` downloader to support `BilinovelNewOption` for configuring headless mode and concurrency. - Implemented a page pool and concurrency control mechanism within the `bilinovel` downloader to manage concurrent browser page usage. - Added `DownloadNovel` and `DownloadVolume` methods to the `bilinovel` downloader, utilizing goroutines and wait groups for parallel processing. - Updated `.vscode/launch.json` with new configurations for testing novel and volume downloads with the new options.
Bilinovel Downloader
这是一个用于从 Bilinovel 下载和生成轻小说 EPUB 电子书的工具。 生成的 EPUB 文件完全符合 EPUB 标准,可以在 Calibre 检查中无错误通过。
使用示例
-
下载整本
https://www.bilinovel.com/novel/2388.htmlbilinovel-downloader download -n 2388 -
下载单卷
https://www.bilinovel.com/novel/2388/vol_84522.htmlbilinovel-downloader download -n 2388 -v 84522 -
对自动生成的 epub 格式不满意可以自行修改后使用命令打包
bilinovel-downloader pack -d <目录路径>
Languages
Go
95.6%
templ
3.5%
CSS
0.9%