antinucleon / edx-dl

7 stars 2 forks source link

Not Working if you can please find the time to fix #10

Open mwindowshz opened 2 years ago

mwindowshz commented 2 years ago

Hi running on windows downloaded chromcast into ./bin aria2 put them both in windows path. when trying to run, the chrome browser opens with edx page I enter user and password, and then nothing. this is what shows on the terminal:

python edx-dl --user me --pwd hi --url https://learning.edx.org/course/course-v1:MichiganX+ANATOMY403.1x+2T2021/home
D:\dev\edx-dl\edx-dl.py:25: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
  self.driver = webdriver.Chrome(
D:\dev\edx-dl\edx-dl.py:25: DeprecationWarning: use options instead of chrome_options
  self.driver = webdriver.Chrome(

DevTools listening on ws://127.0.0.1:53200/devtools/browser/70043eee-7c9e-4af6-9629-6721d2167ec2
[24488:10456:0814/090030.519:ERROR:device_event_log_impl.cc(214)] [09:00:30.519] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[24488:10456:0814/090030.520:ERROR:device_event_log_impl.cc(214)] [09:00:30.519] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[24488:10456:0814/090030.527:ERROR:device_event_log_impl.cc(214)] [09:00:30.527] Bluetooth: bluetooth_adapter_winrt.cc:1074 Getting Default Adapter failed.
Traceback (most recent call last):
  File "D:\dev\edx-dl\edx-dl.py", line 199, in <module>
    run()
  File "C:\ProgramData\Miniconda3\lib\site-packages\click\core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "C:\ProgramData\Miniconda3\lib\site-packages\click\core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "C:\ProgramData\Miniconda3\lib\site-packages\click\core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\ProgramData\Miniconda3\lib\site-packages\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "D:\dev\edx-dl\edx-dl.py", line 195, in run
    course = EdxCourse(user, pwd, url)
  File "D:\dev\edx-dl\edx-dl.py", line 28, in __init__
    self._login(username, pwd)
  File "D:\dev\edx-dl\edx-dl.py", line 101, in _login
    uname_input = self.driver.find_element_by_name("emailOrUsername")
AttributeError: 'WebDriver' object has no attribute 'find_element_by_name'

If you can kindly fix the project, or give some direction. Thanks