xuzhengyi1995 / Manga_downloader

A Manga download framework using selenium.
654 stars 58 forks source link

Tutorial Downloading on CMOA #78

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hello,

I tried following the tutorial you did to download the manga but nothing happened, do you think you could do a video tutorial so that it'd be easier to follow?

Thanks in advance

Azemar commented 2 years ago

Something like this

ghost commented 2 years ago

Something like this

Yeah but that's for Bookwalker and I don't have any problem downloading on that site. As I specified in the title, it's on cmoa that trying to download doesn't work.

persia7emily commented 2 years ago

manga downloader works for cmoa and bookwalker, same steps. try to describe what did you do, let others better know why nothing happened to you.

ghost commented 2 years ago

manga downloader works for cmoa and bookwalker, same steps. try to describe what did you do, let others better know why nothing happened to you.

When I paste "window.i=0;setInterval(()=>{NFBR.a6G.Initializer.Z4p.menu.options.a6l.moveToPage(window.i);console.log(window.i);window.i++;},3000)" in the console, I get "VM1066:1 Uncaught ReferenceError: NFBR is not defined at :1:29" and I don't know where to find the "js".

And when I try to modify "main.py" by adding the URL, cookie, etc. like it's in the README.md and that I run it, nothing happens.

persia7emily commented 2 years ago

manga downloader works for cmoa and bookwalker, same steps. try to describe what did you do, let others better know why nothing happened to you.

When I paste "window.i=0;setInterval(()=>{NFBR.a6G.Initializer.Z4p.menu.options.a6l.moveToPage(window.i);console.log(window.i);window.i++;},3000)" in the console, I get "VM1066:1 Uncaught ReferenceError: NFBR is not defined at :1:29" and I don't know where to find the "js".

And when I try to modify "main.py" by adding the URL, cookie, etc. like it's in the README.md and that I run it, nothing happens.

what you paste is for BW, not CMOA. read carefully.

see https://github.com/xuzhengyi1995/Manga_downloader#how-to-use

ghost commented 2 years ago

I followed it and it didn't work... I have already put undetected_chromedriver in path and all and followed but nope. I recorded how I did it to show it to you (https://www.youtube.com/watch?v=ck2C1akSFmo), the video is still being processed by youtube right now so there's now HD so it may be difficult to read depending on when you watch it.

persia7emily commented 2 years ago

I followed it and it didn't work... I have already put undetected_chromedriver in path and all and followed but nope. I recorded how I did it to show it to you (https://www.youtube.com/watch?v=ck2C1akSFmo), the video is still being processed by youtube right now so there's now HD so it may be difficult to read depending on when you watch it.

oh honey, you're so fresh to python...

some points:

  1. make sure the environment is installed.

this part ↓↓ https://github.com/xuzhengyi1995/Manga_downloader#install-environment--how-to-get-urlcookies

win+r, cmd

pip list

if they are installed, you'll see it like this.

微信截图_20220207234750

  1. use IDLE to edit and run main.py

find python IDLE in Start Menu or find pythonw.exe in Python folder, open main.py and edit it.

微信截图_20220207234225

2022-02-07_235135

try to run it. if there is errors, screenshot.

(i prefer pycharm, more beautiful, like this. but python IDLE is ok)

2022-02-07_235658

ghost commented 2 years ago

I looked and yes I installed selenium, Pillow and undetected-chromedriver image

and when I click "Run" in Python IDLE it stays on the first line image

I did something else to wait and see if it changed but when I looked back 10-15 minutes after clicking on "Run" it didn't change. image image

persia7emily commented 2 years ago

selenium needs chromedriver, undetected-chromedriver helps to set a chromedriver.

it seems that something wrong with chromedriver, your undetected-chromedriver doesn't play a role. so it cannot open a chrome window.

if chromedriver is correct, it shows

[INFO](root) 2022-02-09 22:40:21 : Find action class, use CmoaJP class.
[INFO](root) 2022-02-09 22:40:21 : Login...
[INFO](root) 2022-02-09 22:40:32 : Login finished...

steps to check:

  1. python folder is added to path 2022-02-09_224452
  2. download a chromedriver that fits your chrome, and move it to folder in path
    chrome://settings/help
    https://sites.google.com/chromium.org/driver/

    2022-02-09_224615

i don't know which will work, so i put a chromedriver.exe in these folder. 2022-02-09_224758

then try again

persia7emily commented 2 years ago

and you can make the window be seen temporarily,

in downloader.py search

option.add_argument('--headless')

add "#" make it be

#option.add_argument('--headless')

then run it, you can see the window works itself, easy to find what's wrong

2022-02-09_230628

ghost commented 2 years ago

Now it works. Thank you very much!

ghost commented 2 years ago

I noticed that when I try to download multiple manga at once, I have that screen: image

Do you know how to solve this?

persia7emily commented 2 years ago

i have reported to author before, no solution now. this problem sometimes happen, you can stop headless (i told about above) to solve it.

and i will avoid download cmoa on 11-1 o'clock japanese time.

发自我的iPhone

------------------ Original ------------------ From: Ezhbasheil @.> Date: 周四,2月 10,2022 2:50 上午 To: xuzhengyi1995/Manga_downloader @.> Cc: persia7emily @.>, Comment @.> Subject: Re: [xuzhengyi1995/Manga_downloader] Tutorial Downloading on CMOA (Issue #78)

I noticed that when I try to download multiple manga at once, I have that screen:

Do you know how to solve this?

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>

ghost commented 2 years ago

stopping headless didn't solve it but it doesn't matter now that at least I can download