GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - abcfy2/getComic: Download tencent comic-下载腾讯漫画

BranchesTags
Open more actions menu

Latest commit

 

History

104 Commits
104 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.md
README.md
 
 
get.cmd
get.cmd
 
 
get.fish
get.fish
 
 
getComic-gui.py
getComic-gui.py
 
 
getComic.py
getComic.py
 
 
list.txt
list.txt
 
 

Repository files navigation

getComic

本代码仅供学习交流使用,严禁用于非法用途,各种PR都欢迎

下载腾讯漫画的脚本。空参运行进入交互式模式,支持的参数可以加-h或--help参数查看。

GUI版本提供windows下打包好的版本

点此下载 (只提供64位版本,可以在win7/win10 64bit系统下运行)

使用Pyinstaller打包

依赖:

  • python3
  • 第三方类库requests
  • 第三方类库lxml
  • python3-pyqt5 (GUI依赖,不用GUI可不装)

ubuntu系列系统使用以下命令安装依赖:

sudo apt-get update ; sudo apt-get install python3 python3-requests python3-lxml
sudo apt-get install python3-pyqt5 #GUI依赖,不用GUI可不装

URL格式: 漫画首页的URL,如http://m.ac.qq.com/comic/index/id/518333(移动版) 或 http://ac.qq.com/Comic/comicInfo/id/17114, http://ac.qq.com/naruto(PC版)

注意: 火影忍者彩漫需要访问m.ac.qq.com搜索火影忍者,因为PC端页面火影忍者彩漫和黑白漫画是一个id一个url。

命令行帮助

usage: getComic.py [-h] [-u URL] [-p PATH] [-d] [-l LIST]

*下载腾讯漫画,仅供学习交流,请勿用于非法用途*
空参运行进入交互式模式运行。

optional arguments:
  -h, --help            show this help message and exit
  -u URL, --url URL     要下载的漫画的首页,可以下载以下类型的url: 
                        http://ac.qq.com/Comic/comicInfo/id/511915
                        http://m.ac.qq.com/Comic/comicInfo/id/505430
                        http://pad.ac.qq.com/Comic/comicInfo/id/505430
                        http://ac.qq.com/naruto
  -p PATH, --path PATH  漫画下载路径。 默认: /home/fengyu/tencent_comic
  -d, --dir             将所有图片下载到一个目录(适合腾讯漫画等软件连看使用)
  -l LIST, --list LIST  要下载的漫画章节列表,不指定则下载所有章节。格式范例: 
                        N - 下载具体某一章节,如-l 1, 下载第1章
                        N,N... - 下载某几个不连续的章节,如 "-l 1,3,5", 下载1,3,5章
                        N-N... - 下载某一段连续的章节,如 "-l 10-50", 下载[10,50]章
                        杂合型 - 结合上面所有的规则,如 "-l 1,3,5-7,11-111"

GUI预览效果

支持不连续的章节选择下载

windows预览效果:

deepin/Linux 预览效果:

更新日志

  • 2016-08-18更新: 增加超时,失败后返回错误,不卡死,增加两个批量下载脚本(windows&ubuntu) PS:本来是学校网络不好,打算要开学带点漫画过去,在ubuntu上爬了一半硬盘存满了。。。于是又牺牲了一下笔记本。 list.txt是使用 wget -r -l 2 -np -k http://ac.qq.com 把腾讯动漫网站爬下来,然后稍微处理一下弄得,没想到什么别的方法。
  • 2014-12-26更新: 新增小功能——单目录下载模式,适合导入腾讯漫画等看图工具连续观看
  • 2014-07-26更新: GUI小细节优化——下载完毕后重新聚焦listview。默认下载路径分隔符windows和linux统一风格
  • 2014-07-24更新: 完成GUI界面基本功能
  • 2014-07-11更新: 开坑,GUI走起!提交一个基本框架,使用python3-pyqt5的GUI框架。此次递交文件: https://github.com/abcfy2/getComic/commit/6110571122f923a398604ca7faff18615c961683
  • 2014-07-08更新: 增加-l|--list参数,指定需要下载的章节范围,相关issue: #2
  • 2014-07-05更新: CF漫画地址 (http://ac.qq.com/cf) 无法跳转至对应的移动端URL,这一类地址将给出错误提示并退出
  • 2014-07-04更新: 加入命令行参数支持功能
  • 2014-07-03更新: 伪续传实现,判断目标文件路径存在就跳过下载(腾讯应该加入了防刷机制,无法通过head请求得到的content-length判断究竟是否需要重下,因为for循环+head请求过快,会被ban掉,造成异常退出)
  • 2014-07-03更新: 使用ipad的UA,这样访问非id的URL,会跳转为http://m.ac.qq.com这样带有id的移动版URL,可以搞定http://ac.qq.com/naruto或http://ac.qq.com/onepiece这一类非id结尾的URL。

下一步计划:

  • 实现火影等无id的页面下载(已解决)
  • 实现完整的命令行参数(已解决)
  • 一个图形界面(pyqt5实现)

About

Download tencent comic-下载腾讯漫画

my.oschina.net/abcfy2/blog/294668

Resources

Readme
Activity

Stars

205 stars

Watchers

14 watching

Forks

73 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.