xuzhengyi1995 / Manga_downloader

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

BookWalker unicode error #14

Closed whiteangel123 closed 3 years ago

whiteangel123 commented 4 years ago

Not sure what I did wrong, but when I try to download from Bookwalker I get "unicode error: unicodeescape can't decode bytes" The URL is member.bookwalker.jp, as mentioned. Did I maybe get the wrong cookie? :(

xuzhengyi1995 commented 4 years ago

Hello, Thank you for your question. I think maybe you wrote the wrong path, if you are using Windows system, please make sure that the path you given is some thing like: "C:\path\to\images\manganame" or "C:/path/to/images/manganame" but never "C:\path\to\images\manganame", in many program, the \xxxx means this is a unicode, so if you want to input "\" you must use "\". If this not solve your problem, please give a full log, thank you!

whiteangel123 commented 4 years ago

This is what happened:

`Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved.

C:\Windows\system32>e:

E:>cd E:\Renta_Downloader-master\Manga_downloader-master

E:\Renta_Downloader-master\Manga_downloader-master>python main.py File "main.py", line 13 'imgdir': 'E:\Renta_Downloader-master\Manga', ^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in positio n 26-27: malformed \N character escape

E:\Renta_Downloader-master\Manga_downloader-master>`

xuzhengyi1995 commented 4 years ago

Please change main.py line 13:

'imgdir': 'E:\Renta_Downloader-master\Manga',

to

'imgdir': 'E:\\Renta_Downloader-master\\Manga',

Then I think it can be run correctlly. Thank you!

whiteangel123 commented 4 years ago

Hello, it now runs, but nothing gets downloaded. Did I maybe get the URL of the manga wrong :( I copied the "member.bookwalker.jp", and not "viewer.bookwalker.jp".

xuzhengyi1995 commented 4 years ago

I think the URL is ok, it will start with member.bookwalker.jp, normally this is because the cookies is wrong or maybe the network problem, could you give some logs please, it's easier to find out the reason, thank you.

whiteangel123 commented 4 years ago

Hello! Which logs do I need to send? The CMD logs?

whiteangel123 commented 4 years ago

Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved.

C:\Windows\system32>e:

E:>cd E:\Renta_Downloader-master\Manga_downloader-master

E:\Renta_Downloader-master\Manga_downloader-master>python main.py INFO 2020-09-28 21:34:17 : Find action class, use BookwalkerJP class.

DevTools listening on ws://127.0.0.1:59374/devtools/browser/8fd6b6aa-19e9-434c-b 983-802e570e375b Traceback (most recent call last): File "main.py", line 30, in downloader = Downloader(**settings) File "E:\Renta_Downloader-master\Manga_downloader-master\downloader.py", line 72, in init self.init_function() File "E:\Renta_Downloader-master\Manga_downloader-master\downloader.py", line 91, in init_function self.get_driver() File "E:\Renta_Downloader-master\Manga_downloader-master\downloader.py", line 84, in get_driver self.driver = webdriver.Chrome(chrome_options=option) File "C:\Users\ROG\AppData\Local\Programs\Python\Python38-32\lib\site-packages \selenium\webdriver\chrome\webdriver.py", line 76, in init RemoteWebDriver.init( File "C:\Users\ROG\AppData\Local\Programs\Python\Python38-32\lib\site-packages \selenium\webdriver\remote\webdriver.py", line 157, in init self.start_session(capabilities, browser_profile) File "C:\Users\ROG\AppData\Local\Programs\Python\Python38-32\lib\site-packages \selenium\webdriver\remote\webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "C:\Users\ROG\AppData\Local\Programs\Python\Python38-32\lib\site-packages \selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Users\ROG\AppData\Local\Programs\Python\Python38-32\lib\site-packages \selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not crea ted: This version of ChromeDriver only supports Chrome version 83

E:\Renta_Downloader-master\Manga_downloader-master>

xuzhengyi1995 commented 3 years ago

Please check the new method with customized chromium browser, this new method is much more easier to use and could get the original image without bar code, will close this issue, thanks!