abcfy2 / getComic

Download tencent comic-下载腾讯漫画
http://my.oschina.net/abcfy2/blog/294668
195 stars 77 forks source link

Can no longer download from ac.qq.com... #4

Closed Hackswell closed 8 years ago

Hackswell commented 8 years ago

I am trying to download this comic: http://m.ac.qq.com/chapter/index/id/533952/cid/19

But it seems that the directory structure of ac.qq.com has changed maybe?

漫画名: 精灵囚笼
简介: 反乌托邦题材奇幻故事。未来世界,精灵统治着人类。男主越旸与精灵菲丽艾的相遇,将逐渐揭开周遭隐秘的真相和黑暗……
章节数: 77
章节列表:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 圣诞特别篇
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77

正在下载第0001话: 01
Traceback (most recent call last):
  File "./getComic.py", line 299, in <module>
    main(url, path, lst, one_folder)
  File "./getComic.py", line 256, in main
    imgList = getImgList(contentList[i - 1], id)
  File "./getComic.py", line 98, in getImgList
    picJson = json.loads(picJsonPage)
  File "/usr/lib/python3.4/json/__init__.py", line 318, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.4/json/decoder.py", line 343, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.4/json/decoder.py", line 361, in raw_decode
    raise ValueError(errmsg("Expecting value", s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)
abcfy2 commented 8 years ago

m.ac.qq.com页面改版,以前用的方法已经无效,所以会报这样的错。现在移动端页面和ac.qq.com用的加载图片的算法是一样的,不再通过ajax接口获取列表信息,而是页面有个加密的字符串,通过js解密得到详细列表。我暂时没有精力去细细研究这个解密算法了。如果你知道如何获取到图片链接,可以提供算法,谢谢。

Hackswell commented 8 years ago

Thank you for your fast reply. I understand now why it won't work. If I find out how to calculate the images, I'll be sure to let you know!

abcfy2 commented 8 years ago

Got it! I've found the new decoding arithmetic for the tencent comic. I will fix this issue soon.

By the way, just curious. Are you a Chinese? And do you like Chinese comic?

Hackswell commented 8 years ago

Nope. I'm an American. I just like reading manga, manhua, and manhwa. :) I'm also a part-time redrawer for a guy who's translating that comic into English. Thank you so much for your hard work!

abcfy2 commented 8 years ago

Awesome. I've never thought that the foreigners were interested in Chinese manhua(漫画).

For this project is just my hobby, and cannot download the charged manhua chapters(Only can download the first picture.). You can use the official mobile app tencent comic app(腾讯动漫客户端): http://mobile.ac.qq.com/index.html. It has the offline download function, and can pay for the charged chapters.

And by the way. Which manhua do you like best? And which manhua are you tracking recently?