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] Couldn't download #35

Closed MargulanDev closed 8 months ago

MargulanDev commented 8 months ago

when run command python3 main.py --url --email --password

Get error->

ERROR: Could not download course: https://crypto-erke.teachable.com/courses/enrolled/2326744 cause: find_elements() got an unexpected keyword argument 'timeout'

Device: MacOS

MargulanDev commented 8 months ago

Solved by change if self.driver.find_elements(By.ID, "__next", timeout=5): to if self.driver.find_elements(By.ID, "__next"):

in main file

waveformIE commented 8 months ago

@FallingLights I had the same problem and thanks to @MargulanDev post, it solved it for me. If you could remove timeout=5 from the main.py file it would be great so new users don't get caught out!