Code Monkey home page Code Monkey logo

lezhin-comics-downloader's People

Contributors

carldea avatar dependabot[bot] avatar imsejin avatar lgtm-com[bot] avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lezhin-comics-downloader's Issues

How to use this?

i just jumped right in without any knowledge about this, i did all the pre requirements but the cmc wont open.

Unable to build

I tried building the jar using javac targeting 1.8 on jdk 8, with maven package, since there is no instructions I figured this would be the way, the jar builded achieved the same size (160kb) but running it gives me
Could not find or load main class Entrypoint

HELP: unrecognized error

Exception occurs
io.github.imsejin.lzcodl.common.exception.LoginFailureException: Failed to login: unrecognized error
at io.github.imsejin.lzcodl.core.LoginHelper.validate(LoginHelper.java:149)
at io.github.imsejin.lzcodl.core.LoginHelper.login(LoginHelper.java:59)
at io.github.imsejin.lzcodl.Application.main(Application.java:90)

No Images downloaded

This is the first time I've had this issue. It'll create a folder for the images but won't download them.

Command used: java -jar lezhin-comics-downloader-2.8.1.jar -l=en -n=sexercise_en -r=78~

Lezhin Comics Downloader v2.8.1 If you have any questions, contact me by 'https://github.com/ImSejin/lezhin-comics-downloader/issues' Starting ChromeDriver 98.0.4758.102 (273bf7ac8c909cde36982d27f66f3c70846a3718-refs/branch-heads/4758@{#1151}) on port 28224 Only local connections are allowed. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. ChromeDriver was started successfully. Feb 19, 2022 2:13:13 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C Request login page: https://www.lezhin.com/en/login Successfully logged in: access token(90c5f346-b376-44b2-8340-47fe104146b6) Request comic page: https://www.lezhin.com/en/comic/sexercise_en

nothing opens or loads

i'm not sure if i'm stupid or something.. but i put all these in the same folder and when i tried running it it didn't work.. thank you in advance !!

image
image

Error "Unable to detect element"

I got this error

org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document
(Session info: headless chrome=96.0.4664.93)
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/stale_element_reference.html
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'XXX', ip: 'XXX', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_311'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 96.0.4664.93, chrome: {chromedriverVersion: 96.0.4664.35 (8df3babf8da8f..., userDataDir: C:\Users\User\AppData\Local...}, goog:chromeOptions: {debuggerAddress: localhost:56714}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
Session ID: 70072de8a703deaba9563b9e6572b8dc
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285)
at org.openqa.selenium.remote.RemoteWebElement.isDisplayed(RemoteWebElement.java:326)
at org.openqa.selenium.support.ui.ExpectedConditions$9.apply(ExpectedConditions.java:274)
at org.openqa.selenium.support.ui.ExpectedConditions$9.apply(ExpectedConditions.java:270)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:249)
at io.github.imsejin.lzcodl.core.Crawler.getNumOfImagesInEpisode(Crawler.java:183)
at io.github.imsejin.lzcodl.core.Downloader.downloadEpisode(Downloader.java:80)
at io.github.imsejin.lzcodl.core.Downloader.download(Downloader.java:69)
at io.github.imsejin.lzcodl.Application.main(Application.java:105)

Happen to some episodes from various series.

cannot download a paid chapter

When I downloaded ch prologue and ch 1, it worked. But when I tried to download ch 3 which I have already paid for, it became an error.
unknown

not sure whats the issues is

this is what im using and what im getting -

PS C:\Users\dvny> cd C:\Users\dvny\Documents\lezhih
PS C:\Users\dvny\Documents\lezhih> java -jar lezhin-comics-downloader-2.9.0.jar -l=en -n=jinx -r=1~7 -j
Lezhin Comics Downloader v2.9.0
If you have any questions, contact me by 'https://github.com/ImSejin/lezhin-comics-downloader/issues'
Starting ChromeDriver 108.0.5359.71 (1e0e3868ee06e91ad636a874420e3ca3ae3756ac-refs/branch-heads/5359@{#1016}) on port 61811
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Dec 13, 2022 11:43:28 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Dec 13, 2022 11:43:28 AM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
WARNING: Unable to find an exact match for CDP version 108, so returning the closest version found: a no-op implementation
Dec 13, 2022 11:43:28 AM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
INFO: Unable to find CDP implementation matching 108.
Dec 13, 2022 11:43:28 AM org.openqa.selenium.chromium.ChromiumDriver lambda$new$3
WARNING: Unable to find version of CDP to use for . You may need to include a dependency on a specific version of the CDP using something similar to org.seleniumhq.selenium:selenium-devtools-v86:4.1.2 where the version ("v86") matches the version of the chromium-based browser you're using and the version number of the artifact is the same as Selenium's.
Request login page: https://www.lezhin.com/en/login
Successfully logged in: access token(c446ff62-0504-4563-a668-944d15826238)
Request comic page: https://www.lezhin.com/en/comic/jinx
Exception occurs
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.xpath: //main[@id='main' and @Class='lzCntnr lzCntnr--episode'] (tried for 15 second(s) with 500 milliseconds interval)
Build info: version: '4.1.2', revision: '9a5a329c5a'
System info: host: 'BENT0B0X', ip: '10.1.10.58', os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '19.0.1'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 108.0.5359.99, chrome: {chromedriverVersion: 108.0.5359.71 (1e0e3868ee06..., userDataDir: C:\Users\dvny\AppData\Local...}, goog:chromeOptions: {debuggerAddress: localhost:51515}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), se:cdp: ws://localhost:51515/devtoo..., se:cdpVersion: 108.0.5359.99, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
Session ID: eb9a054f1939d7d217d0743dadd3ed1b
at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:138)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:231)
at io.github.imsejin.lzcodl.core.Crawler.getJson(Crawler.java:102)
at io.github.imsejin.lzcodl.Application.main(Application.java:90)

'λ„€μ΄λ²„λ‘œ 둜그인' κΈ°λŠ₯ 건의

μ•ˆλ…•ν•˜μ„Έμš”.

이 ν”„λ‘œκ·Έλž¨μ„ ν•œλ²ˆ μ‚¬μš©ν•΄λ³΄λ €λŠ”λ° 일반 메일 둜그인만 μ§€μ›ν•˜λŠ” κ²ƒμœΌλ‘œ ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€.
ν˜Ήμ‹œ 일반 둜그인 말고 'SNS κ³„μ •μœΌλ‘œ 둜그인 - λ„€μ΄λ²„λ‘œ 둜그인'도 지원 κ°€λŠ₯ν•˜μ‹ κ°€μš”?
μ²˜μŒμ— κ°€μž…ν•  λ•Œ 아무 생각 없이 λ„€μ΄λ²„λ‘œ 연동을 μ‹œμΌ°λŠ”λ° κ·Έλž˜μ„œ κ·ΈλŸ°μ§€ 싀행을 ν•˜λ©΄ 둜그인 였λ₯˜κ°€ λ‚˜λ„€μš”.

κ°μ‚¬ν•©λ‹ˆλ‹€.

Cannot run using Pre-requirements

I have setted up correctly using two different PCs and different O.S

I tried on windows 10 (AMD) with latest chrome version (didn't work) switched to another Win10 (Intel) and didn't work, tried downgrading chrome to 86.0.4240.75, didn't work, tried downgrading to 32bit version, also didn't work.
Last I tried on Ubuntu (AMD) and also had issues.

Windows LOG::
Starting ChromeDriver 86.0.4240.22 (398b0743353ff36fb1b82468f63a3a93b4e2e89e-refs/branch-heads/4240@{#378}) on port 11511 Only local connections are allowed. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. ChromeDriver was started successfully. nov 08, 2020 5:43:48 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFORMAÃıES: Detected dialect: W3C Exception in thread "main" org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.xpath: //main[@id='main' and @class='lzCntnr lzCntnr--home'] (tried for 15 second(s) with 500 milliseconds interval) at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:95) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:272) at io.github.imsejin.lzcodl.core.LoginHelper.getAccessToken(LoginHelper.java:139) at io.github.imsejin.lzcodl.core.LoginHelper.login(LoginHelper.java:34) at io.github.imsejin.lzcodl.Application.main(Application.java:66) Caused by: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//main[@id='main' and @class='lzCntnr lzCntnr--home']"} (Session info: headless chrome=86.0.4240.75) For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: host: 'DESKTOP-XXXXXX', ip: '192.168.0.19', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '11.0.8' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 86.0.4240.75, chrome: {chromedriverVersion: 86.0.4240.22 (398b0743353ff..., userDataDir: C:\Users\DELL\AppData\Local...}, goog:chromeOptions: {debuggerAddress: localhost:49354}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:virtualAuthenticators: true} Session ID: 5a1ee69e88e639bf2072423c7d1fbb72 *** Element info: {Using=xpath, value=//main[@id='main' and @class='lzCntnr lzCntnr--home']} at jdk.internal.reflect.GeneratedConstructorAccessor7.newInstance(Unknown Source) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323) at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428) at org.openqa.selenium.By$ByXPath.findElement(By.java:353) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315) at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:205) at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:201) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:249)

Linux LOG:
Starting ChromeDriver 86.0.4240.22 (398b0743353ff36fb1b82468f63a3a93b4e2e89e-refs/branch-heads/4240@{#378}) on port 20857 Only local connections are allowed. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. ChromeDriver was started successfully. nov 08, 2020 5:31:42 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C Exception in thread "main" org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.xpath: //main[@id='main' and @class='lzCntnr lzCntnr--home'] (tried for 15 second(s) with 500 milliseconds interval) at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:95) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:272) at io.github.imsejin.lzcodl.core.LoginHelper.getAccessToken(LoginHelper.java:139) at io.github.imsejin.lzcodl.core.LoginHelper.login(LoginHelper.java:34) at io.github.imsejin.lzcodl.Application.main(Application.java:66) Caused by: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//main[@id='main' and @class='lzCntnr lzCntnr--home']"} (Session info: headless chrome=86.0.4240.183) For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: host: 'XXXXXX', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '5.4.0-52-generic', java.version: '11.0.9' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 86.0.4240.183, chrome: {chromedriverVersion: 86.0.4240.22 (398b0743353ff..., userDataDir: /tmp/.com.google.Chrome.CuliBc}, goog:chromeOptions: {debuggerAddress: localhost:42289}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:virtualAuthenticators: true} Session ID: 50bbcec5403c798abe75ea7cafd9f8c4 *** Element info: {Using=xpath, value=//main[@id='main' and @class='lzCntnr lzCntnr--home']} at jdk.internal.reflect.GeneratedConstructorAccessor7.newInstance(Unknown Source) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323) at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428) at org.openqa.selenium.By$ByXPath.findElement(By.java:353) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315) at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:205) at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:201) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:249)

Not sure how to use it

been trying to get this to work but it kept saying "Error: Unable to access jarfile lezhin-comics-downloader-3.1.0.jar" so am not sure what am doing wrong I already downloaded the ChromeDriver, config.ini and the latest lezhin downloader, and Placed them in the same path
Screenshot 2023-08-13 041750

Screenshot 2023-08-13 041647

help: can't login

please help. i have already installed jdk 17 and i put config, chromdriver, and lezhin comic downloader in one path
help

Downloading image of lower quality than manually

C:\Users\WT>java -jar lezhin-comics-downloader-3.0.0.jar -l=en -n=chainofyouth -r=22~22
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Starting ChromeDriver 108.0.5359.71 (1e0e3868ee06e91ad636a874420e3ca3ae3756ac-refs/branch-heads/5359@{#1016}) on port 18077
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Dec 15, 2022 8:15:34 AM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
WARNING: Unable to find an exact match for CDP version 108, so returning the closest version found: 105
chainofyouth ep.22 100% [========] 20/20 imgs (0:00:01 / 0:00:00) | 20.0 imgs/s

In the latest version the image downloaded is smaller than if extracted manually

Originally posted by @yimeji in #136 (comment)

Login doesn't work

When i use the program, it say that the login doesn't exist (picture) but it's my account information.

It may not be the right way to connect.

Or maybe the site has to be changed.

And sorry, I'm new here. I don't know how it's work in github.

Thank you.

test

Images' disassembly as new LezhinUS's (pseudo-)security system

Good morning to You all, @ImSejin and all the other Contributors of the projectπŸ‘‹.

The issue I'm about to expose -at the time of writing- is still "work in progress", that's, it hasn't yet involved all the titles published on LezhinUS. Starting a few days ago the pages downloaded are messed up.
There's no glitches or bugs into Your downloader, 'cause by opening Developer Tools on Chrome and/or Firefox and analyzing page's elements, the .webp images are "demolished" in this exact way (maybe they encoded images). I hope You can fix this awful mess, but I'm afraid it'll take a looong time.

"unable to access jarfile"

Hello,
It seems like I can't even run the program in cmd, because all i get is the 'unable to access jarfile lezhin-comics-downloader-2.5.0.jar' first thing.
I'm on windows 7. I have the source files and the downloader.jar in the same folder, i installed the drivers for my chrome, and changed the config.ini file to match my lezhin account, have it in the folder, too. i downloaded and installed Java SE Development Kit 15 (JDK).
I add the 'java -jar lezhin-comics-downloader-2.5.0.jar -l=en -n=unknowncode', and it doesn't work.

Exception in thread "main" java.lang.NoClassDefFoundError

I get an error, when I try to download:
Starting ChromeDriver 111.0.5563.19 (378a38865270d286695aeb86f190564911ef7bc2-refs/branch-heads/5563@{#251}) on port 8762 Only local connections are allowed. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. ChromeDriver was started successfully. Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class io.github.imsejin.dl.lezhin.browser.WebBrowser$SingletonLazyHolder at io.github.imsejin.dl.lezhin.browser.WebBrowser.getDriver(WebBrowser.java:129) at io.github.imsejin.dl.lezhin.browser.WebBrowser.quitIfInitialized(WebBrowser.java:151) at io.github.imsejin.dl.lezhin.Application.main(Application.java:65)

I run:
Ubuntu 22.04
java 17.0.5 2022-10-18 LTS
Java(TM) SE Runtime Environment (build 17.0.5+9-LTS-191)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode, sharing)

Can you help me, please?
Thanks

Forkirara

No image gets downloaded

OS: Windows 10 21H2 (Build 19044.1526)
java -version:

openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment Temurin-17.0.2+8 (build 17.0.2+8)
OpenJDK 64-Bit Server VM Temurin-17.0.2+8 (build 17.0.2+8, mixed mode, sharing)

Command used: java.exe -jar lezhin-comics-downloader-2.8.1.jar -l=en -n=keystone -r=~2
Debug log:

2022-02-16 15:08:35.398 [INFO ] 84  --- [main] i.g.i.l.Application#main : Lezhin Comics Downloader v2.8.1
2022-02-16 15:08:35.405 [INFO ] 86  --- [main] i.g.i.l.Application#main : If you have any questions, contact me by 'https://github.com/ImSejin/lezhin-comics-downloader/issues'
2022-02-16 15:08:35.406 [DEBUG] 87  --- [main] i.g.i.l.Application#main : Argument: Arguments(language=en, comicName=keystone, episodeRange=~2, imageFormat=webp, debugging=true)
Starting ChromeDriver 98.0.4758.102 (273bf7ac8c909cde36982d27f66f3c70846a3718-refs/branch-heads/4758@{#1151}) on port 37770
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Feb 16, 2022 3:08:37 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
2022-02-16 15:08:37.254 [INFO ] 91  --- [main] i.g.i.l.c.LoginHelper#tryLogin : Request login page: https://www.lezhin.com/en/login
2022-02-16 15:08:41.866 [DEBUG] 96  --- [main] i.g.i.l.c.LoginHelper#tryLogin : Wait up to 15 sec for login element to be rendered
2022-02-16 15:08:41.985 [DEBUG] 103 --- [main] i.g.i.l.c.LoginHelper#tryLogin : Send username:
2022-02-16 15:08:42.196 [DEBUG] 110 --- [main] i.g.i.l.c.LoginHelper#tryLogin : Send password:
2022-02-16 15:08:42.371 [DEBUG] 116 --- [main] i.g.i.l.c.LoginHelper#tryLogin : Try to login
2022-02-16 15:08:42.654 [DEBUG] 136 --- [main] i.g.i.l.c.LoginHelper#validate : Wait up to 10 sec for main page to be rendered
2022-02-16 15:08:45.603 [INFO ] 215 --- [main] i.g.i.l.c.LoginHelper#getAccessToken : Successfully logged in: access token(                                    )
2022-02-16 15:08:45.608 [DEBUG] 79  --- [main] i.g.i.l.core.Crawler#getJson : Change locale setting: https://www.lezhin.com/en/locale/en-US?locale=en-US
2022-02-16 15:08:47.615 [INFO ] 84  --- [main] i.g.i.l.core.Crawler#getJson : Request comic page: https://www.lezhin.com/en/comic/keystone
2022-02-16 15:08:49.797 [DEBUG] 96  --- [main] i.g.i.l.core.Crawler#getJson : Wait up to 15 sec for episode list to be rendered
2022-02-16 15:08:50.033 [DEBUG] 167 --- [main] i.g.i.l.Application#createDirectory : Create directory: D:\Application\lezhin-dl\L_The Keystone Romantic Combination - NETCOMICS, TEAL, Teava, Yuni Lim
2022-02-16 15:08:50.041 [DEBUG] 174 --- [main] i.g.i.l.core.Crawler#getNumOfImagesInEpisode : Request episode page: https://www.lezhin.com/en/comic/keystone/1
2022-02-16 15:08:53.631 [DEBUG] 181 --- [main] i.g.i.l.core.Crawler#getNumOfImagesInEpisode : Wait up to 15 sec for images to be rendered

2022-02-16 15:08:57.600 [DEBUG] 174 --- [main] i.g.i.l.core.Crawler#getNumOfImagesInEpisode : Request episode page: https://www.lezhin.com/en/comic/keystone/2
2022-02-16 15:08:58.873 [DEBUG] 181 --- [main] i.g.i.l.core.Crawler#getNumOfImagesInEpisode : Wait up to 15 sec for images to be rendered

No images got downloaded (only directories are created). I tried with other series' chapters (free and paid) and it has the same problem. During debug the pages loaded fine but it just skips over downloading the images for some reason...

WARNING: Invalid Status code=403 text=Forbidden

Hi,

Got this error today.

Starting ChromeDriver 111.0.5563.64 (c710e93d5b63b7095afe8c2c17df34408078439d-refs/branch-heads/5563@{#995}) on port 17066
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Mar 10, 2023 4:11:06 AM org.openqa.selenium.remote.http.WebSocket$Listener onError
WARNING: Invalid Status code=403 text=Forbidden
java.io.IOException: Invalid Status code=403 text=Forbidden
at org.asynchttpclient.netty.handler.WebSocketHandler.abort(WebSocketHandler.java:92)
at org.asynchttpclient.netty.handler.WebSocketHandler.handleRead(WebSocketHandler.java:118)
at org.asynchttpclient.netty.handler.AsyncHttpClientHandler.channelRead(AsyncHttpClientHandler.java:78)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:336)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:323)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:444)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:280)
at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:280)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:1589)

Exception in thread "main" java.lang.ExceptionInInitializerError
at io.github.imsejin.dl.lezhin.browser.WebBrowser.run(WebBrowser.java:140)
at io.github.imsejin.dl.lezhin.process.impl.LoginProcessor.process(LoginProcessor.java:59)
at io.github.imsejin.dl.lezhin.process.impl.LoginProcessor.process(LoginProcessor.java:39)
at io.github.imsejin.dl.lezhin.Application.main(Application.java:59)
Caused by: org.openqa.selenium.remote.http.ConnectionFailedException: Unable to establish websocket connection to http://localhost:50102/devtools/browser/1027f9d1-fee4-49f1-8005-99804376b53c
Build info: version: '4.6.0', revision: '79f1c02ae20'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '19.0.1'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.http.netty.NettyWebSocket.(NettyWebSocket.java:102)
at org.openqa.selenium.remote.http.netty.NettyWebSocket.lambda$create$3(NettyWebSocket.java:128)
at org.openqa.selenium.remote.http.netty.NettyClient.openSocket(NettyClient.java:107)
at org.openqa.selenium.devtools.Connection.(Connection.java:77)
at org.openqa.selenium.chromium.ChromiumDriver.lambda$new$2(ChromiumDriver.java:116)
at java.base/java.util.Optional.map(Optional.java:260)
at org.openqa.selenium.chromium.ChromiumDriver.(ChromiumDriver.java:114)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:81)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:70)
at io.github.imsejin.dl.lezhin.browser.WebBrowser$SingletonLazyHolder.(WebBrowser.java:125)
... 4 more

판맀 μ’…λ£Œ μž‘ν’ˆ μ‚¬μš© λΆˆκ°€

덕뢄에 제일 μ’‹μ•„ν•˜λ˜ μž‘ν’ˆ νŽΈν•˜κ²Œ λ°›μ•˜μŠ΅λ‹ˆλ‹€. κ°μ‚¬λ“œλ¦½λ‹ˆλ‹€.

νŒλ§€κ°€ μ’…λ£Œλ˜μ„œ 검색이 μ•ˆλ˜λŠ” μž‘ν’ˆμ€ μ½μ–΄μ˜€μ§ˆ λͺ»ν•˜λŠ” 것 같은데 이뢀뢄은 해결이 μ–΄λ €μšΈκΉŒμš”?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.3.1
  • fix(deps): update dependency org.slf4j:slf4j-api to v2.0.15
  • fix(deps): update retrofit monorepo to v2.11.0 (com.squareup.retrofit2:converter-scalars, com.squareup.retrofit2:converter-gson, com.squareup.retrofit2:retrofit)
  • πŸ” Create all rate-limited PRs at once πŸ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/codeql.yml
  • actions/checkout v4
  • github/codeql-action v3
  • github/codeql-action v3
  • github/codeql-action v3
.github/workflows/create-release.yml
  • actions/checkout v4
  • actions/setup-java v4
  • ncipollo/release-action v1
.github/workflows/maven-build.yml
  • actions/checkout v4
  • actions/setup-java v4
  • codecov/codecov-action v3
maven
pom.xml
  • io.github.imsejin:common-utils 0.14.0
  • commons-cli:commons-cli 1.6.0
  • me.tongfei:progressbar 0.10.0
  • com.squareup.retrofit2:retrofit 2.9.0
  • com.squareup.retrofit2:converter-gson 2.9.0
  • com.squareup.retrofit2:converter-scalars 2.9.0
  • org.seleniumhq.selenium:selenium-java 4.11.0
  • org.seleniumhq.selenium:selenium-http-jdk-client 4.11.0
  • org.reflections:reflections 0.10.2
  • ch.qos.logback:logback-classic 1.4.12
  • org.slf4j:slf4j-api 2.0.13
  • org.projectlombok:lombok 1.18.34
  • org.mapstruct:mapstruct 1.5.5.Final
  • org.jetbrains:annotations 24.1.0
  • org.junit.jupiter:junit-jupiter-engine 5.10.3
  • org.junit.jupiter:junit-jupiter-params 5.10.3
  • org.assertj:assertj-core 3.24.2
  • org.spockframework:spock-core 2.3-groovy-4.0
  • org.mockito:mockito-inline 5.2.0
  • org.apache.maven.plugins:maven-compiler-plugin 3.13.0
  • org.projectlombok:lombok 1.18.34
  • org.projectlombok:lombok-mapstruct-binding 0.2.0
  • org.mapstruct:mapstruct-processor 1.5.5.Final
  • org.apache.maven.plugins:maven-surefire-plugin 3.3.0
  • org.codehaus.gmavenplus:gmavenplus-plugin 3.0.2
  • org.apache.maven.plugins:maven-jar-plugin 3.3.0
  • org.apache.maven.plugins:maven-shade-plugin 3.6.0
  • org.jacoco:jacoco-maven-plugin 0.8.11
maven-wrapper
.mvn/wrapper/maven-wrapper.properties
  • maven 3.9.6
  • maven-wrapper 3.2.0

  • Check this box to trigger a request for Renovate to run again on this repository

μ €ν™”μ§ˆ λ‹€μš΄λ‘œλ“œ 문제

μ—…λ°μ΄νŠΈ ν•΄μ£Όμ‹  덕뢄에 λ¬Έμ œμ—†μ΄ 잘 μ“°κ³  μžˆμŠ΅λ‹ˆλ‹€! λ‹€μ‹œ ν•œλ²ˆ κ°μ‚¬λ“œλ¦½λ‹ˆλ‹€!!

λ‹€λ§Œ μ†Œμž₯ν•˜κ³  μžˆλŠ” 책은 μ‹€μ œ κ°€λ‘œ 해상도가 1080인 λ°˜λ©΄μ— λ‹€μš΄ 결과물은 720인 λ¬Έμ œκ°€ μžˆλŠ”λ°μš”.
μ•„λ§ˆ 이미지 링크에 purchased 뢀뢄이 true둜 λ˜μ–΄μ•Ό ν•˜λŠ”λ° λ‹€μš΄μ‹œ false둜 λ˜μ–΄ μžˆμ–΄ μ €ν•˜λœ ν™”μ§ˆλ‘œ λ°›μ•„ μ§€λŠ” 것 κ°™μŠ΅λ‹ˆλ‹€.

Refactor: `URIs` to connect to URI on each locale

io.github.imsejin.lzcodl.common.constant.URIs >>

public interface URIResolver {

    URI resolve(URIs uris, Languages languages);

}

public class KoreanURIResolver implements URIResolver {
    /* ... */
}
public class EnglishURIResolver implements URIResolver {
    /* ... */
}
public class JapaneseURIResolver implements URIResolver {
    /* ... */
}

(Refer to #92)

Unable to download

I'm having trouble using the downloader. If somebody could help, that would be greatly appreciated. Here's the output:

Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Apr 29, 2021 7:49:35 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Request login page: https://www.lezhin.com/en/login
Successfully logged in: access token(90c5f346-b376-44b2-8340-47fe104146b6)
Request comic page: https://www.lezhin.com/en/comic/sexercise
Exception in thread "main" org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.xpath: //main[@id='main' and @Class='lzCntnr lzCntnr--episode'] (tried for 15 second(s) with 500 milliseconds interval)
at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:95)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:272)
at io.github.imsejin.lzcodl.core.Crawler.getJson(Crawler.java:79)
at io.github.imsejin.lzcodl.Application.main(Application.java:81)
Caused by: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//main[@id='main' and @Class='lzCntnr lzCntnr--episode']"}
(Session info: headless chrome=89.0.4389.128)
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: '[....]', ip: '[....], os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_291'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 89.0.4389.128, chrome: {chromedriverVersion: 89.0.4389.23 (61b08ee2c5002..., userDataDir: C:\Users\NICKNA~1\AppData\L...}, goog:chromeOptions: {debuggerAddress: localhost:1645}, javascriptEnabled: true, networkConnectionE
nabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:largeBlob: true, webauth
n:virtualAuthenticators: true}
Session ID: 2a3a55cfdf1420700a2947f9107a57b0
*** Element info: {Using=xpath, value=//main[@id='main' and @Class='lzCntnr lzCntnr--episode']}
at sun.reflect.GeneratedConstructorAccessor11.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323)
at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428)
at org.openqa.selenium.By$ByXPath.findElement(By.java:353)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315)
at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:205)
at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:201)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:249)
... 2 more

Need help

Help, please, to understand what the problem is. When you run the script, a chrome window opens in incognito mode and nothing else happens.

PS C:\Users\Alle\Desktop\Lezhin> java -jar lezhin-comics-downloader-3.1.0.jar -l=ko -n=bush -r=109 -j -s -d
Starting ChromeDriver 115.0.5790.170 (cc0d30c2ca5577520c8646671513241faa0bc105-refs/branch-heads/5790@{#1923}) on port 29133
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Ρ€Ρ‚Ρƒ. 14, 2023 8:40:37 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
WARNING: Unable to find an exact match for CDP version 115, so returning the closest version found: 113
2023-08-14 20:40:38.008 ←[34m[INFO ]←[0;39m ←[35m93 ←[0;39m --- [main] ←[36mi.g.i.d.l.p.i.LoginProcessor#gotoLoginPage←[0;39m : Request login page: https://www.lezhin.com/ko/login
2023-08-14 20:41:18.930 ←[39m[DEBUG]←[0;39m ←[35m98 ←[0;39m --- [main] ←[36mi.g.i.d.l.p.i.LoginProcessor#waitForRenderingLoginPage←[0;39m : Wait up to 15 sec for login element to be rendered
2023-08-14 20:41:34.183 ←[1;31m[ERROR]←[0;39m ←[35m65 ←[0;39m --- [main] ←[36mi.g.i.d.l.Application#main←[0;39m : Failed to perform a process
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.xpath: //form[@id='email' and contains(@action, '/login') and @method='post'] (tried for 15 second(s) with 500 milliseconds interval)
Build info: version: '4.9.1', revision: 'eb2032df7f'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '11.0.19'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 115.0.5790.171, chrome: {chromedriverVersion: 115.0.5790.170 (cc0d30c2ca5..., userDataDir: C:\Users\Alle\AppData\Loc...}, goog:chromeOptions: {debuggerAddress: localhost:4108}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: windows, proxy: Proxy(), se:cdp: ws://localhost:4108/devtool..., se:cdpVersion: 115.0.5790.171, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
Session ID: 73a8123261665a205923fdbe01424692
at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:87)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:231)
at io.github.imsejin.dl.lezhin.browser.WebBrowser.waitForVisibilityOfElement(WebBrowser.java:223)
at io.github.imsejin.dl.lezhin.process.impl.LoginProcessor.waitForRenderingLoginPage(LoginProcessor.java:100)
at io.github.imsejin.dl.lezhin.process.impl.LoginProcessor.process(LoginProcessor.java:65)
at io.github.imsejin.dl.lezhin.process.impl.LoginProcessor.process(LoginProcessor.java:39)
at io.github.imsejin.dl.lezhin.Application.main(Application.java:61)

Unused format argument

if (imageCount == null) {
    throw new ImageCountNotFoundException("Failed to get image count of episode[{}]: imageCountMap={}",
            episode, this.imageCountMap);
}

Replace {} with %s.

Discrepancy with pages' format

I've a bit of a weird question.
The webtoon pages are downloaded with a certain size: in the case of the one I did the first test with, 720 px).
Yet, I found the same pages of the same manhwa uploaded by an anonymous uploader on another web platform with a width of 1080 px and even 1242 px. I took another manhwa, and I noticed the same discrepancy: the pages are available at 720 px wide on Lezhin, at 1280 px on another web platform. And the sharpness isn't affected, quite the opposite!
I suspected that WEBP format was the culprit, but even adding the -j or -jpg argument (as wrote in #42) the output format doesn't change.
How can I download the original (not shrunken) pages' size?
Is there some trick and/or argument to obtain HD format?
Thank You.

How to

Hello, how do I use lezhin downloader java? I already make a folder that consists of java downloader, chromedriver, and config.ini. but it seems I can't access it

ν¬λ‘¬λ“œλΌμ΄λ²„ 였λ₯˜?

JDK 19버전 μ„€μΉ˜ν•˜κ³  chromedriver.exe, config.ini, lezhin-comics-downloader-3.0.2.jar λͺ¨λ‘ ν•œ 폴더에 λ’€μŠ΅λ‹ˆλ‹€.

크둬 버전 108.0.5359.125, ν¬λ‘¬λ“œλΌμ΄λ²„ 버전 108.0.5359.71인데 cmdμ—΄μ–΄μ„œ μ½”λ“œ μž…λ ₯ν•˜λ©΄

WARNING: Unable to find an exact match for CDP version 108, so returning the closest version found: 105 Request login page: https://www.lezhin.com/ko/login Failed to perform a process io.github.imsejin.dl.lezhin.exception.LoginException: Failed to login at io.github.imsejin.dl.lezhin.process.impl.LoginProcessor.validate(LoginProcessor.java:135) at io.github.imsejin.dl.lezhin.process.impl.LoginProcessor.process(LoginProcessor.java:80) at io.github.imsejin.dl.lezhin.process.impl.LoginProcessor.process(LoginProcessor.java:39) at io.github.imsejin.dl.lezhin.Application.main(Application.java:59) Caused by: org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.xpath: //main[@id='main' and @class='lzCntnr lzCntnr--home'] (tried for 15 second(s) with 500 milliseconds interval)

μ΄λ ‡κ²Œ λœ¨λŠ”λ° 뭐가 λ¬Έμ œμΈκ°€μš”?

λ‘œκ·ΈμΈμ—μ„œ 계속 λ§‰νžˆλ„€μš”γ… γ… 

Lezhin Comics Downloader v2.8.1 If you have any questions, contact me by 'https://github.com/ImSejin/lezhin-comics-downloader/issues' Starting ChromeDriver 91.0.4472.101 (af52a90bf87030dd1523486a1cd3ae25c5d76c9b-refs/branch-heads/4472@{#1462}) on port 1582 Only local connections are allowed. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. ChromeDriver was started successfully. 7μ›” 01, 2021 1:20:49 μ˜€ν›„ org.openqa.selenium.remote.ProtocolHandshake createSession 정보: Detected dialect: W3C Request login page: https://www.lezhin.com/ko/login Exception occurs org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.xpath: //main[@id='main' and @class='lzCntnr lzCntnr--home'] (tried for 10 second(s) with 500 milliseconds interval) at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:95) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:272) at io.github.imsejin.lzcodl.core.LoginHelper.validate(LoginHelper.java:138) at io.github.imsejin.lzcodl.core.LoginHelper.login(LoginHelper.java:59) at io.github.imsejin.lzcodl.Application.main(Application.java:90) Caused by: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//main[@id='main' and @class='lzCntnr lzCntnr--home']"} (Session info: headless chrome=91.0.4472.124) For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: host: 'DESKTOP-A31BF7Q', ip: '192.168.0.7', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_291' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 91.0.4472.124, chrome: {chromedriverVersion: 91.0.4472.101 (af52a90bf870..., userDataDir: C:\Users\dobby\AppData\Loca...}, goog:chromeOptions: {debuggerAddress: localhost:50143}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true} Session ID: b7dbe4f4a6be045f6e4668c5a97b7bfd *** Element info: {Using=xpath, value=//main[@id='main' and @class='lzCntnr lzCntnr--home']} at sun.reflect.GeneratedConstructorAccessor11.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323) at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428) at org.openqa.selenium.By$ByXPath.findElement(By.java:353) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315) at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:205) at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:201) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:249) ... 3 common frames omitted

μ™œ μ΄λŸ°κ±ΈκΉŒμš”γ… γ… 
μ €λ²ˆμ— ν–ˆμ„ 땐 잘 λμ—ˆλŠ”λ°...κ°‘μžκΈ° μ•ˆλ˜λ„€μš”

dosn't download

After succes to login nothing happens, no error, nothing, it just finish the process without any download, the folder is created with nothing inside on it.

Does it work on free episodes? I tried to download https://www.lezhin.com/en/comic/gday with -r=~5 which are the free episodes.
Nothing happens.

Windows 10

README.gif

preview
(less than v2.0.0)

preview-2.1.2
(v2.1.2)

comic-name

preview
(>=v2.4.0)

UnknownHostException Error

μ–΄μ œκΉŒμ§€ 였λ₯˜μ—†μ΄ λ‹€μš΄ ν–ˆμ—ˆλŠ”λ° 였늘 ν•΄λ‹Ή 였λ₯˜κ°€ λœΉλ‹ˆλ‹€.

Exception occurs
java.lang.RuntimeException: java.net.UnknownHostException: cdn.lezhin.com
at io.github.imsejin.common.util.JsonUtils.readJsonFromUrl(JsonUtils.java:67)
at io.github.imsejin.lzcodl.core.Downloader.getNumOfImagesInEpisode(Downloader.java:127)
at io.github.imsejin.lzcodl.core.Downloader.downloadEpisode(Downloader.java:79)
at io.github.imsejin.lzcodl.core.Downloader.download(Downloader.java:69)
at io.github.imsejin.lzcodl.Application.main(Application.java:105)
Caused by: java.net.UnknownHostException: cdn.lezhin.com
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at io.github.imsejin.common.util.JsonUtils.readJsonFromUrl(JsonUtils.java:64)
... 4 common frames omitted

μž…λ ₯ν•œ λͺ…λ Ήμ–΄λŠ” java -jar lezhin-comics-downloader-2.8.1.jar -l=ko -n=immortaldays -r=1~2 -j μž…λ‹ˆλ‹€
같은 μž‘ν’ˆμ„ μ–΄μ œ λ‹€μš΄λ‘œλ“œ ν–ˆμ„ λ•ŒλŠ” 이런 였λ₯˜κ°€ λœ¨μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€!

Nothing is downloaded

Starting ChromeDriver 108.0.5359.71 (1e0e3868ee06e91ad636a874420e3ca3ae3756ac-refs/branch-heads/5359@{#1016}) on port 6646
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
???. 29, 2022 1:46:30 AM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
WARNING: Unable to find an exact match for CDP version 108, so returning the closest version found: 105
Request login page: https://www.lezhin.com/ko/login
Request comic page: /ko/comic/sexy_wife
Failed to perform a process
java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "java.util.Map.get(Object)" is null
at io.github.imsejin.dl.lezhin.process.impl.DownloadProcessor$KoreanImpl.getImageCountOfEpisode(DownloadProcessor.java:167)
at io.github.imsejin.dl.lezhin.process.impl.DownloadProcessor.process(DownloadProcessor.java:98)
at io.github.imsejin.dl.lezhin.process.impl.DownloadProcessor.process(DownloadProcessor.java:66)
at io.github.imsejin.dl.lezhin.Application.main(Application.java:59)

No image gets downloaded

OS: Windows 10 64-bit
java -version:

java version "18" 2022-03-22
Java(TM) SE Runtime Environment (build 18+36-2087)
Java HotSpot(TM) 64-Bit Server VM (build 18+36-2087, mixed mode, sharing)

Version of lezhin-comics-downloader used: v2.9.0 (latest).

Command used: C:\Users\Utente\Downloads\Lezhin Comics Downloader v2.9.0>java -jar lezhin-comics-downloader.jar -l=en -n=onesmallstep -r=1~2 -j

Results:

C:\Users\Utente\Downloads\Lezhin Comics Downloader v2.9.0>java -jar lezhin-comics-downloader.jar -l=en -n=onesmallstep -r=1~2 -j
        Lezhin Comics Downloader v2.9.0
        If you have any questions, contact me by 'https://github.com/ImSejin/lezhin-comics-downloader/issues'
Starting ChromeDriver 107.0.5304.62 (1eec40d3a5764881c92085aaee66d25075c159aa-refs/branch-heads/5304@{#942}) on port 60004
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
nov 04, 2022 8:01:17 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
nov 04, 2022 8:01:17 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
WARNING: Unable to find an exact match for CDP version 107, so returning the closest version found: a no-op implementation
nov 04, 2022 8:01:17 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
INFO: Unable to find CDP implementation matching 107.
nov 04, 2022 8:01:17 PM org.openqa.selenium.chromium.ChromiumDriver lambda$new$3
WARNING: Unable to find version of CDP to use for . You may need to include a dependency on a specific version of the CDP using something similar to `org.seleniumhq.selenium:selenium-devtools-v86:4.1.2` where the version ("v86") matches the version of the chromium-based browser you're using and the version number of the artifact is the same as Selenium's.
        Request login page: https://www.lezhin.com/en/login
        Successfully logged in: access token(a3d4566d-281c-455b-ae24-bc6ba4571dbc)
        Request comic page: https://www.lezhin.com/en/comic/onesmallstep
onesmallstep ep.1   0% [>                ]  0/68 imgs (0:00:01 / ?) | ,0 imgs/s
onesmallstep ep.2   0% [>                ]  0/80 imgs (0:00:01 / ?) | ,0 imgs/s

C:\Users\Utente\Downloads\Lezhin Comics Downloader v2.9.0>

The above screen has always been like this and Your downloader has always worked perfectly until October 31st. I also specify that the downloader has already successfully extracted those chapters, as well as the following one; I also tried with already paid lezhin-comics' chapters.
In all cases, no images got downloaded; only the directories are created😰.

Can't download certain episodes of the same title.

This is something that happen prior when the downloader still works that I forgot to report.

This happen on korean site.

        Failed to perform a process
java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "java.util.Map.get(Object)" is null
        at io.github.imsejin.dl.lezhin.process.impl.DownloadProcessor$KoreanImpl.getImageCountOfEpisode(DownloadProcessor.java:167)
        at io.github.imsejin.dl.lezhin.process.impl.DownloadProcessor.process(DownloadProcessor.java:98)
        at io.github.imsejin.dl.lezhin.process.impl.DownloadProcessor.process(DownloadProcessor.java:66)
        at io.github.imsejin.dl.lezhin.Application.main(Application.java:59)

Login Failed

Hi Im Sejin,

My Lezhin login fails and I think it is because my Lezhin account has a different website address than your .jar file. Your .jar file is attempting to login at:

https://www.lezhin.com/en/login

but my account is at:

https://www.lezhinus.com/en/login

Is there a different .jar file for the lezhinus.com login or is there a way to change this address in the 2.7.0 jar file you have provided?

Thank you so much!

lionbuoy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.