Harkame / JapScanDownloader

Script to download mangas from JapScan
GNU General Public License v3.0
20 stars 7 forks source link

cloudflare check not passed #71

Closed darodi closed 1 year ago

darodi commented 1 year ago

I updated chromedriver.exe a few days ago. I don't know if this is linked, but now, the main page is not loading.

I managed to bypass the check with https://github.com/ultrafunkamsterdam/undetected-chromedriver instead of the usual chromedriver in python. However, headless mode must be turned off to make it work.

Any advice?

I can create a PR if you want.

Harkame commented 1 year ago

I'm not surprised, I'm using undetected-chromedriver on several over scrapers I would appreciate a PR, thank you

For the headless mode, I haven't any clues for now. maybe you can try something like move the windows out the screen like this

driver.set_window_position(-10000,0)

or maybe change de windows size like this

browser.set_window_size(0, 0)
darodi commented 1 year ago

works again in headless mode with last version of undetected-chromedriver see version changelog here https://github.com/ultrafunkamsterdam/undetected-chromedriver#345

darodi commented 1 year ago

It might be better to use selenium-wire and let the browser download the image only once, then save the requested image. Maybe next PR.