zsakvo / dhbooker Goto Github PK
View Code? Open in Web Editor NEWDownload books from www.ciweimao.com
Download books from www.ciweimao.com
希望下載檔案檔能加上後綴
而不是取代上次的檔案
例如:
書名 - 作者 - 第X捲 第Y章 ZZZ(章節名)
如果同檔名檔案已存在 則加上編號
希望能以一次選擇儲存多種檔案種類
能一次下載txt和epub而不用下載2次
近期重写了一下此工具,由于两次编写时间相隔过于久远,代码并无关联,所以采取了重开新仓库的方案。如有使用需求可以访问
https://github.com/zsakvo/Cirno-go 获取并编译之。
希望使用epub模式時, 下載時能連圖片一起下載
txt 則是標記註明有圖 "圖:XXX" (圖片名), 而不是 次處應有圖片 請更新..
dhbooker-win64.exe -b 100069646
《方洲猎国志》,共148章
0 / 148 [------------------------------------------------------------------------------------------]
0.00%panic: runtime error: index out of range
goroutine 108 [running]:
main.PKCS7UnPadding(...)
/Users/zsakvo/project/dhbooker/decode.go:53
main.AESDecrypt(0xc000c55d82, 0x20, 0x9d9450, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/zsakvo/project/dhbooker/decode.go:46 +0x207
main.decode(0x0, 0x0, 0xc000c55d82, 0x20, 0x0, 0x0)
/Users/zsakvo/project/dhbooker/decode.go:61 +0x9c
main.getChapterContent(0xc000292a50, 0x9, 0x9, 0x73fd55, 0x4)
/Users/zsakvo/project/dhbooker/ciweimao.go:168 +0xa41
main.writeChapterTemp(0xc000292a50, 0x9, 0x94)
/Users/zsakvo/project/dhbooker/ciweimao.go:191 +0x105
created by main.downloadChapters
/Users/zsakvo/project/dhbooker/ciweimao.go:72 +0x13c
conf.ini
[account]
# 用户名,必填
username = ***
# 密码,必填
password = ***
[token]
# 自动生成,请勿修改
token = ***
[path]
# 临时目录,必填
tmp = C:\Users\***\Desktop\dhbooker\tmp
# 输出目录,必填
out = C:\Users\***\Desktop\dhbooker\output
近日刺猬猫网页端持续无法访问,导致本工具无法工作,建议提供命令行选项选择目录从客户端还是网页端接口获取
在按照要求填写好conf.ini,且对main.go进行了编译后,在执行时遇到了如下的问题:
p.s. 同样的问题在6月3日的issue里也出现过。
input:
dhbooker-master -b ********
output:
0 / 536 [----------------------------------------------------------------------------------------------------] 0.00%panic: runtime error: index out of range
goroutine 186 [running]:
main.PKCS7UnPadding(...)
D:/dhbooker-master/dhbooker-master/decode.go:53
main.AESDecrypt(0xc0013f20c2, 0x20, 0x9d9450, 0x0, 0x0, 0x0, 0x0, 0x0)
D:/dhbooker-master/dhbooker-master/decode.go:46 +0x207
main.decode(0x0, 0x0, 0xc0013f20c2, 0x20, 0x0, 0x0)
D:/dhbooker-master/dhbooker-master/decode.go:61 +0x9c
main.getChapterContent(0xc0003cf360, 0x9, 0x9, 0x740e56, 0x4)
D:/dhbooker-master/dhbooker-master/ciweimao.go:167 +0xa41
main.writeChapterTemp(0xc0003cf360, 0x9, 0x218)
D:/dhbooker-master/dhbooker-master/ciweimao.go:189 +0x105
created by main.downloadChapters
D:/dhbooker-master/dhbooker-master/ciweimao.go:72 +0x13c
conf.ini
username = ****
password = ****
tmp = E:\dhbook\tmp
out = E:\dhbook\out
想要请教一下,应该如何操作才能解决这个问题呢?谢谢。
如大唐西域直播记,https://www.ciweimao.com/book/100046364
dh.exe -b 100046364 -t epub
tmp下载后不输出保存为epub
dh.exe -b 100046364 或者dh.exe -b 100046364 -t txt可以下载保存为txt,请问是命令输入错误了吗?
https://www.ciweimao.com/book/100037305大明:征服天堂,由于文件名有冒号,下载时建立大明:征服天堂由于无法建立带冒号的文件夹,无法下载
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.