aapatre / Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE

Do you want to LEARN NEW STUFF for FREE? Don't worry, with the power of web-scraping and automation, this script will find the necessary Udemy coupons & enroll you for PAID UDEMY COURSES, ABSOLUTELY FREE!
GNU General Public License v3.0
3.14k stars 545 forks source link

Microsoft Edge on Linux does not work (wrong download URL of the webdriver) #110

Closed fakeid30 closed 3 years ago

fakeid30 commented 3 years ago

Relevant Error log :

✖ 130 Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE git:(master) ✗ ❯❯❯ python udemy_enroller_edge.py 
Loading existing settings
[WDM] - There is no [linux64] edgedriver for browser  in cache
[WDM] - Trying to download new driver from https://msedgedriver.azureedge.net/87.0.664.47/edgedriver_linux64.zip
Traceback (most recent call last):
  File "udemy_enroller_edge.py", line 12, in <module>
    driver = webdriver.Edge(EdgeChromiumDriverManager().install())
  File "/home/nirjhor/.local/lib/python3.8/site-packages/webdriver_manager/microsoft.py", line 47, in install
    return self._get_driver_path(self.driver)
  File "/home/nirjhor/.local/lib/python3.8/site-packages/webdriver_manager/manager.py", line 29, in _get_driver_path
    file = download_file(driver.get_url())
  File "/home/nirjhor/.local/lib/python3.8/site-packages/webdriver_manager/utils.py", line 93, in download_file
    validate_response(response)
  File "/home/nirjhor/.local/lib/python3.8/site-packages/webdriver_manager/utils.py", line 79, in validate_response
    raise ValueError("There is no such driver by url {}".format(resp.url))
ValueError: There is no such driver by url https://msedgedriver.azureedge.net/87.0.664.47/edgedriver_linux64.zip
cullzie commented 3 years ago

@fakeid30 Ye the resource is gone by the looks of it. This would be a bug on the webdriver-manager tool we use: https://github.com/SergeyPirogov/webdriver_manager/blob/master/webdriver_manager/microsoft.py#L35-L36

fakeid30 commented 3 years ago

I filed an issue there.

cullzie commented 3 years ago

Changed the label to wont fix as its outside our control until a fix is released for this: https://github.com/SergeyPirogov/webdriver_manager/issues/162

cullzie commented 3 years ago

That link seems to be working now but for that version of edge there is no driver available for linux. Can you try it again and see if its working now?

fakeid30 commented 3 years ago

@cullzie

◆ Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE git:(master) ❯❯❯ python udemy_enroller.py --browser=edge
Loading existing settings
[WDM] - There is no [linux64] edgedriver for browser  in cache
[WDM] - Trying to download new driver from https://msedgedriver.azureedge.net/87.0.664.60/edgedriver_linux64.zip
Traceback (most recent call last):
  File "/home/nirjhor/PycharmProjects/Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE/udemy_enroller.py", line 77, in <module>
    run(args.browser, args.max_pages, args.cache_hits)
  File "/home/nirjhor/PycharmProjects/Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE/udemy_enroller.py", line 31, in run
    dm = DriverManager(browser=browser, is_ci_build=settings.is_ci_build)
  File "/home/nirjhor/PycharmProjects/Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE/core/driver_manager.py", line 37, in __init__
    self._init_driver()
  File "/home/nirjhor/PycharmProjects/Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE/core/driver_manager.py", line 57, in _init_driver
    self.driver = webdriver.Edge(EdgeChromiumDriverManager().install())
  File "/home/nirjhor/.local/lib/python3.9/site-packages/webdriver_manager/microsoft.py", line 47, in install
    return self._get_driver_path(self.driver)
  File "/home/nirjhor/.local/lib/python3.9/site-packages/webdriver_manager/manager.py", line 29, in _get_driver_path
    file = download_file(driver.get_url())
  File "/home/nirjhor/.local/lib/python3.9/site-packages/webdriver_manager/utils.py", line 93, in download_file
    validate_response(response)
  File "/home/nirjhor/.local/lib/python3.9/site-packages/webdriver_manager/utils.py", line 79, in validate_response
    raise ValueError("There is no such driver by url {}".format(resp.url))
ValueError: There is no such driver by url https://msedgedriver.azureedge.net/87.0.664.60/edgedriver_linux64.zip
cullzie commented 3 years ago

Maybe it is to do with the version of edge you have installed on your system. Anyway I don't think the issue is with the web_driver_manager library but more that MS don't ship a edge driver for linux on every release

fakeid30 commented 3 years ago

Maybe it is to do with the version of edge you have installed on your system. Anyway I don't think the issue is with the web_driver_manager library but more that MS don't ship a edge driver for linux on every release

it could be .