1 Star 1 Fork 0

SwhGo_oN / TencentComicBook

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

TencentComicBook

腾讯漫画、哔哩哔哩漫画、有妖气漫画爬虫

本项目特点

  • 漫画批量下载
  • 分目录按章节保存
  • 支持腾讯漫画、哔哩哔哩漫画、有妖气漫画、快看漫画
  • 支持登录
  • 支持生成pdf
  • 支持发送到邮箱
  • 集成api,方便调用 API-README

使用步骤

# clone项目
git clone git@github.com:lossme/TencentComicBook.git
# 切换工作目录
cd TencentComicBook
# 安装依赖
python3 -m pip install requirements.txt
# 查看帮助
python3 -m onepiece --help

如果在使用过程中,发现问题可以先更新代码再试下,说不定已经修复了。

欢迎大家提建议和issue

常规使用

默认从腾讯漫画下载,注意不同站点的comicid区别

  • 下载海贼王最新一集: python3 -m onepiece
  • 下载漫画 id=505430 最新一集: python3 -m onepiece --comicid=505430
  • 下载漫画 id=505430 所有章节: python3 -m onepiece --comicid=505430 --all
  • 下载漫画 id=505430 第800集: python3 -m onepiece --comicid=505430 --chapter=800
  • 下载漫画 id=505430 倒数第二集: python3 -m onepiece --comicid=505430 --chapter=-2
  • 下载漫画 id=505430 1到5集,7集,9到10集: python3 -m onepiece --comicid=505430 --chapter=1-5,7,9-10
  • 下载漫画 id=505430 并生成pdf文件: python3 -m onepiece --comicid=505430 --pdf
  • 下载漫画 id=505430 并推送到邮箱: python3 -m onepiece --comicid=505430 --pdf --mail
  • 从哔哩哔哩漫画下载: python3 -m onepiece --site=bilibili --comicid=mc24742 --chapter=1-5
  • 从有妖气漫画下载: python3 -m onepiece --site=u17 --comicid=195 --chapter=-1

若不清楚或不记得comicid,可以使用名字来搜索,按照提示输入comicid

  • python3 -m onepiece --site=qq --name=海贼 --chapter=1-5
  • python3 -m onepiece --site=bilibili --name=海贼 --chapter=-1
  • python3 -m onepiece --site=u17 --name=雏蜂 --chapter=-1

注意: 发送到邮箱需预先配置好信息

复制config.ini.example并命名为config.ini,并根据实际情况修改config.ini的参数

关于登录

限于本人能力有限,登录懒得搞,只好祭出selenium这个大杀器

  1. 安装selenium: python3 -m pip install selenium
  2. 安装chrome浏览器,或其它浏览器
  3. 下载chromedriver,或其它浏览器的driver
  4. 登录,并将cookies保存在本地(保存登录状态,存着下次用)
python3 -m onepiece --site=qq --comicid=505430 --chapter=-1 \
  --login \
  --driver-path="driver路径" \
  --driver-type="Chrome" \
  --session-path=".cache/session.pickle"

免责声明:本项目仅供学习交流之用,请勿用于非法用途。

MIT License Copyright (c) 2018 Key Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/soxgoon/TencentComicBook.git
git@gitee.com:soxgoon/TencentComicBook.git
soxgoon
TencentComicBook
TencentComicBook
master

搜索帮助