skilletfun / WebParser

2 stars 0 forks source link

How do I parse the link? #1

Open rasbayri opened 1 year ago

rasbayri commented 1 year ago

I tried downloading from mechacomic.jp but it just crashes when I paste this link https://mechacomic.jp/browser/api_v/viewer.php?cgi=https://c.sp-cnt.comics.mecha.cc/browser/dl/free_chapter/1869884/1b802c6d129795185861b35ebf509450/diazepam_hai.php&url=https%3A%2F%2Fmechacomic.jp%2Fbooks%2F146151&file=face.xml&colophon=https%3A%2F%2Fmechacomic.jp%2Ffree_chapters%2F1813865%2Fcolophon%3Fback_path%3D%252Fbooks%252F146151%26vertical%3Don&colophon_size=320_340&v_type=bnvuvt&popup=https%3A%2F%2Fmechacomic.jp%2Ffree_chapters%2F1813865%2Fcolophon%3Fback_path%3D%252Fbooks%252F146151%26vertical%3Don&popup_size=320_340&logo=https%3A%2F%2Fmechacomic.jp%2Fimages%2Fparts%2Fviewer_new_logo_white.png&param=K1h2FZUf%2Bx3yQUnKNRD4TB4SS9fv0%2F0cysbQum910K%2Bw3N2jKNmwJ9GgUDkisTqOPkv5Z6QAi0rhpe142Ln5jJUpnGgLsL19gFRg%2B8c6nKeu%2Bjhu4pCHbr2G3KovzFFQ1VqeY%2Bz4OzfZ2ajKh5YSmg2GfsWGL6XW2rdBnQN%2FnsA%3D&hide_pages=true&margin=0 I want to download this manga: https://mechacomic.jp/books/146151 And thank you so much for this amazing tool!!!

skilletfun commented 1 year ago

Hi. Current version of this tool are not actual. Some sites are changed. And as can I see this site too. And I guess now downloading from this site will be very hard. Just open Developer Console, go to the Network tab and you will see that images go to your browser in crypted view.

Screenshot from 2023-03-29 23-28-29

skilletfun commented 1 year ago

May be, if method for "shuffle" parts of images are not different for any images I will fix this.

rasbayri commented 1 year ago

I figured out the method yesterday by doing so, but I can't download and select all of them at the same time so I had to download each of them by clicking on it image

skilletfun commented 1 year ago

Ok, I founded out how to decrypt (de-shuffle) images. So I think that I can easily fix this. But now I have no time for work on this project. I will continue to work on this project when I will have some time for it. Sorry.

Inpacchi commented 7 months ago

Ok, I founded out how to decrypt (de-shuffle) images. So I think that I can easily fix this. But now I have no time for work on this project. I will continue to work on this project when I will have some time for it. Sorry.

Do you think you can explain it briefly so others can take a crack at it?

skilletfun commented 7 months ago

Ok, I founded out how to decrypt (de-shuffle) images. So I think that I can easily fix this. But now I have no time for work on this project. I will continue to work on this project when I will have some time for it. Sorry.

Do you think you can explain it briefly so others can take a crack at it?

Open network tab and load chapter. Now you can see two types requests: xml with shuffle config and returned image. In xml you can see scramble sequence. I guess number in sequence is new position part of image by index. For example sequence 3 14 2 ... (indexes from zero: 0, 1, 2 ...) It means that first part of image (index zero) now at index 3, 1-indexed part at index 14, 3-indexed part at index 2 So you need split image from request by equal parts (I guess 16 parts - 4x4) and reshuffle them by sequence

Screenshot - sequence image

Inpacchi commented 7 months ago

Ok, I founded out how to decrypt (de-shuffle) images. So I think that I can easily fix this. But now I have no time for work on this project. I will continue to work on this project when I will have some time for it. Sorry.

Do you think you can explain it briefly so others can take a crack at it?

Open network tab and load chapter. Now you can see two types requests: xml with shuffle config and returned image. In xml you can see scramble sequence. I guess number in sequence is new position part of image by index. For example sequence 3 14 2 ... (indexes from zero: 0, 1, 2 ...) It means that first part of image (index zero) now at index 3, 1-indexed part at index 14, 3-indexed part at index 2 So you need split image from request by equal parts (I guess 16 parts - 4x4) and reshuffle them by sequence

Screenshot - sequence image

Perfect, thanks! Funny enough, I had found this myself when looking into it, so glad to know we had the same idea!