FallingLights / Teachable-dl

Course downloader for teachable platform written in python3 using selenium and yt-dlp
GNU Lesser General Public License v3.0
106 stars 27 forks source link

[BUG] Invisible Chromium window #30

Closed TWry closed 8 months ago

TWry commented 9 months ago

Describe the bug After starting the script it says that I should click the captcha checkbox. I cannot do that, however, as there is no visible window. I can see the Chromium process but it does not seem to have a GUI.

Expected behavior A Chromium window is displayed in which I can check the captcha checkbox.

Desktop (please complete the following information):

TWry commented 9 months ago

Any ideas how I can fix or debug this?

totalitarian commented 9 months ago

Same problem here with the latest commit

TWry commented 9 months ago

After manually installing Chrome by downloading the package from the Google website and changing the first lines of the __init__ constructor to:

        options = uc.ChromeOptions()
        options.headless = False
        self.driver = uc.Chrome(options=options)

it worked, but only one time. Subsequent attempts failed because as far as I can tell the login is skipped by the browser as the user is still authenticated.

totalitarian commented 9 months ago

After manually installing Chrome by downloading the package from the Google website and changing the first lines of the __init__ constructor to:

        options = uc.ChromeOptions()
        options.headless = False
        self.driver = uc.Chrome(options=options)

it worked, but only one time. Subsequent attempts failed because as far as I can tell the login is skipped by the browser as the user is still authenticated.

can you post the full init? I get uc is not defined

TWry commented 9 months ago

Sorry, you need to add the following import:

import undetected_chromedriver as uc
FallingLights commented 8 months ago

Latest commit should fix this issue