-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2. 修复文件名过长的报错: file name too long 3. 调整了线程池到for循环外面,避免重复创建线程池 4. 新增环境变量merge_episodes,用于多个章节的图片合并到同一目录,方便阅读
- Loading branch information
1 parent
1006655
commit c775864
Showing
11 changed files
with
347 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#按实际需求改param,filter这两节下的配置即可,其余配置不改不影响运行 | ||
#请不要将哔咔账密/哔咔密钥等敏感信息上传至GitHub 请不要将哔咔账密/哔咔密钥等敏感信息上传至GitHub 请不要将哔咔账密/哔咔密钥等敏感信息上传至GitHub | ||
|
||
[param] | ||
#哔咔账户名称 | ||
pica_account: | ||
#哔咔账户密码 | ||
pica_password: | ||
#哔咔请求时的密钥 参考AnkiKong提供的secret_key https://zhuanlan.zhihu.com/p/547321040 | ||
pica_secret_key: | ||
#在下载完成后,是否自动取消收藏(推荐为True,避免收藏夹下的漫画被重复下载) | ||
change_favourite: True | ||
#运行结束后发送自定义消息进行通知(可为空) 例: `https://api.day.app/{your_keys}/picacg下载成功` | ||
bark_url: | ||
#使用代理(为空则不使用代理) | ||
request_proxy: | ||
#将同一本漫画的不同章节进行合并 | ||
merge_episodes: False | ||
|
||
#自定义过滤规则 | ||
[filter] | ||
#过滤分区 具体的分区列表可以从client.py的categories方法中获取 为空则不过滤 用,分隔 | ||
categories: CG雜圖,生肉,耽美花園,偽娘哲學,扶他樂園,性轉換,SAO 刀劍神域,WEBTOON,Cosplay | ||
#过滤规则 INCLUDE: 包含任意一个分区就下载 EXCLUDE: 包含任意一个分区就不下载 | ||
categories_rule: EXCLUDE | ||
# 订阅的关键词,会下载x天范围内上传的漫画 为空则不订阅 用,分隔 | ||
subscribe_keyword: | ||
# 订阅的x天范围 GitHub Actions运行时填小一点,免得漫画过多邮箱推送不了,本地运行时随便填 | ||
subscribe_days: 60 | ||
|
||
#下载相关的配置 | ||
[crawl] | ||
#下载同一本漫画中若干图片的线程并发数.下载是IO密集型操作,可以考虑设置为比cpu核心数稍大一些的值 | ||
concurrency: 5 | ||
#每下载一本漫画的间隔时间(秒),在下载大量漫画时可以设置的稍微大一些,免得哔咔服务器响应不过来 | ||
interval_time: 5 | ||
#下载阶段是否输出细节信息 | ||
detail: True | ||
#限制每次请求的最大时间(秒) | ||
request_time_out: 10 | ||
# 保留最近?天的日志文件 | ||
backup_count: 30 | ||
|
||
#访问哔咔服务器的固定请求头 | ||
[header] | ||
api-key: C69BAF41DA5ABD1FFEDC6D2FEA56B | ||
accept: application/vnd.picacomic.com.v1+json | ||
app-channel: 2 | ||
nonce: b1ab87b4800d4d4590a11701b8551afa | ||
app-version: 2.2.1.2.3.3 | ||
app-uuid: defaultUuid | ||
app-platform: android | ||
app-build-version: 45 | ||
Content-Type: application/json; charset=UTF-8 | ||
User-Agent: okhttp/3.8.1 | ||
image-quality: original |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.