Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://www.colamanga.com/ 無法下載 #398

Open
eyes1971 opened this issue Jan 9, 2025 · 1 comment
Open

https://www.colamanga.com/ 無法下載 #398

eyes1971 opened this issue Jan 9, 2025 · 1 comment

Comments

@eyes1971
Copy link

eyes1971 commented Jan 9, 2025

comiccrawler gui
Start analyzing https://www.colamanga.com/manga-mr835058/
Analyzing success!
Start downloading 我独自升级 : 诸神黄昏
total 23 episode.
Downloading ep 预热
Traceback (most recent call last):
File "/home/sam/.local/lib/python3.12/site-packages/comiccrawler/crawler.py", line 393, in error_loop
process()
File "/home/sam/.local/lib/python3.12/site-packages/comiccrawler/crawler.py", line 342, in download
crawler.init()
File "/home/sam/.local/lib/python3.12/site-packages/comiccrawler/crawler.py", line 58, in init
self.init_images(self.ep.current_page - 1)
File "/home/sam/.local/lib/python3.12/site-packages/comiccrawler/crawler.py", line 65, in init_images
self.get_images()
File "/home/sam/.local/lib/python3.12/site-packages/comiccrawler/crawler.py", line 245, in get_images
raise ValueError("get_images returns an empty array")
ValueError: get_images returns an empty array
wait 10 seconds...

@Silverbullet069
Copy link

Silverbullet069 commented Jan 14, 2025

Yeah I'm having this problem as well. I've found out that https://www.colamanga.com/ is using two API versions at the same time, one is direct URL to server, one is through Blob URL. Blob URL is the latest.

For example, Zombie World chap 629:

<!-- ... -->
<div class="mh_comicpic" p="1">
        <img
          src="//img.colamanga.com/comic/15752/MW9MT0ZKa0t5OEZQTDVlc1hXL2NiMzd2N05Hdzlkd0J0WFFPSkp5N1NyQT0=/0001.jpg"
          onerror="__cr.imgOnError()"
        />
      </div>
      <div class="mh_comicpic" p="2">
        <img
          onerror="__cr.imgOnError()"
          src="https://img.colamanga.com/comic/15752/MW9MT0ZKa0t5OEZQTDVlc1hXL2NiMzd2N05Hdzlkd0J0WFFPSkp5N1NyQT0=/0002.jpg"
        />
      </div>
<!-- ... -->

Zombie World chap 630:

<!-- ... -->
<div class="mh_comicpic" p="1">
        <img
          onerror="__cr.imgOnError()"
          src="blob:https://www.colamanga.com/321a1c97-db28-46ea-8ca7-8cfaa95309d2"
        />
      </div>
      <div class="mh_comicpic" p="2">
        <img
          onerror="__cr.imgOnError()"
          src="blob:https://www.colamanga.com/37d193e8-02ad-45d1-9528-e6b9cccf524a"
        />
      </div>
<!-- ... -->

I'm trying to learn how the author did reverse engineering the JS files in oh.py but it's quite over my head right now. Can you teach me how to do this @eight04 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants