xuzhengyi1995 / Manga_downloader

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

Bookwalker: Unable to locate element #19

Closed mkx173 closed 4 years ago

mkx173 commented 4 years ago

I get the following error message when trying to download from bookwalker. I used document.cookie to get the cookie.

DevTools listening on ws://127.0.0.1:7714/devtools/browser/c36fa091-0540-491b-ba4d-f5404646a09d
[INFO](root) 2020-10-30 01:34:48 : Find action class, use BookwalkerJP class.
[INFO](root) 2020-10-30 01:34:48 : Login...
[INFO](root) 2020-10-30 01:34:52 : Login finished...
[INFO](root) 2020-10-30 01:34:52 : Starting download manga 1, imgdir: E:\Manga_downloader\test
[INFO](root) 2020-10-30 01:34:52 : Loading Book page...
[INFO](root) 2020-10-30 01:34:55 : Book page Loaded...
[INFO](root) 2020-10-30 01:34:55 : Preparing for downloading...
[INFO](root) 2020-10-30 01:35:15 : Run before downloading...
[INFO](root) 2020-10-30 01:35:15 : Start download...
[ERROR](root) 2020-10-30 01:35:15 : Something wrong or download finished,Please check the error.png to see the web page.
Normally, you should logout and login, then renew the cookies to solve this problem.
[ERROR](root) 2020-10-30 01:35:15 : Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="pageSliderCounter"]"}
  (Session info: headless chrome=86.0.4240.111)

[INFO](root) 2020-10-30 01:35:15 : Finished download manga 1, imgdir: E:\Manga_downloader\test

Below is error.png. error

AlphaLiu commented 4 years ago

You didn't set the correct login cookies

mkx173 commented 4 years ago

How do I get the correct cookies then? Currently I do this:

  1. Go to https://member.bookwalker.jp/app/03/my/profile
  2. Press f12
  3. Use document.cookie in Console tab to get the cookies