xuzhengyi1995/Manga_downloader

台版Bookwalker改版問題

Opened this issue · 8 comments

台版Bookwalker改版後,用新舊方式皆無法下載? 是否能查看一下 謝謝

经尝试浏览器下载是正常的,请问具体是什么表现,谢谢。
image

您好
舊方法會出現以下錯誤訊息:

PS D:\Manga_downloader-master> .\main.py
[INFO](undetected_chromedriver) 2022-12-03 01:32:57 : Selenium patched. Safe to import Chrome / ChromeOptions
[INFO](undetected_chromedriver) 2022-12-03 01:32:57 : Selenium patched. Safe to import Chrome / ChromeOptions

DevTools listening on ws://127.0.0.1:56294/devtools/browser/156007cf-8d22-453f-b535-fb03b3bee677
[INFO](undetected_chromedriver) 2022-12-03 01:32:59 : starting undetected_chromedriver.Chrome((), {'options': <selenium.webdriver.chrome.options.Options object at 0x000002B23CEBF040>, 'executable_path': './chromedriver.exe'})
[INFO](root) 2022-12-03 01:32:59 : Find action class, use BookwalkerTW class.
[INFO](root) 2022-12-03 01:32:59 : Login...
[INFO](root) 2022-12-03 01:33:00 : Login finished...
[INFO](root) 2022-12-03 01:33:00 : Starting download manga 1, imgdir: D://01
[INFO](root) 2022-12-03 01:33:00 : Loading Book page...
[INFO](root) 2022-12-03 01:33:01 : Book page Loaded...
[INFO](root) 2022-12-03 01:33:01 : Preparing for downloading...
[INFO](root) 2022-12-03 01:33:09 : Run before downloading...
[INFO](root) 2022-12-03 01:33:09 : Start download...
[ERROR](root) 2022-12-03 01:33:10 : 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) 2022-12-03 01:33:10 : Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="pageSliderCounter"]"}
  (Session info: headless chrome=108.0.5359.72)

[INFO](root) 2022-12-03 01:33:10 : Finished download manga 1, imgdir: D://01
[INFO](root) 2022-12-03 01:33:12 : Find action class, use BookwalkerTW class.

error

新方法發生的問題
image

您好 同求舊方法的修正qq
新方法會不時有缺頁問題
我跟樓上的ERROR看起來類似
不過ERROR圖是顯示沒有登錄會員
可是明明是有登錄的
error_p
error

看起来可能是网站对cookies的验证做了更新导致无法登录,我会看一下新版网站的情况。
同时新方法也进行了更新,提高了performance,可以再次进行尝试。

上面提到的新方法的问题看上去可能是网页没有加载完全或者使用了错误的翻页脚本,可以尝试手动翻页是否能正常下载,方便问题的判断。

您好 新方法測試後效能提高很多 但偶爾還是有漏頁問題 不知道是不是電腦問題
舊方法有機會做更新嗎? 謝謝

您好 新方法測試後效能提高很多 但偶爾還是有漏頁問題 不知道是不是電腦問題 舊方法有機會做更新嗎? 謝謝

更新了新方法的版本,还请尝试是否仍然会漏页,同时可以尝试将自动翻页脚本的时间延长一些。

对于BW来说,新方法有很多优势,如果可能比较建议使用新方法,旧方法之也会进行更新,还请稍作等待。

我在 login 完之後加了以下幾行解決了舊版的問題:

driver.find_element(By.CSS_SELECTOR, '.swal2-confirm.swal2-styled').click() # click "確定"

但要記得再次回到 Manga URL 那頁,所以要再次執行下面兩行:

driver.set_window_size(self.res[0], self.res[1])
driver.get(this_manga_url)