Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
While trying to download from Udemy I am getting the ExtractorError. It did not come for 1 course, but now coming for rest of them. I am having updated youtube-dl.
In verbose mode, I can see below:
C:\Python27\Scripts>youtube-dl -u username -p passxxxxx https://www.udemy.com/master-the-mean-stack/learn/v4/overview --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'https://www.udemy.com/master-the-mean-stack/learn/v4/overview', u'--verbose
']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.05.09
[debug] Python version 2.7.15rc1 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: none
[debug] Proxy map: {'https': 'https://proxy:8080'}
[udemy:course] Downloading login popup
[udemy:course] Logging in
[udemy:course] master-the-mean-stack: Downloading webpage
[udemy:course] 653846: Downloading course curriculum
[download] Downloading playlist: Master the MEAN Stack - Learn By Example
[udemy:course] playlist Master the MEAN Stack - Learn By Example: Collected 42 video ids (downloading 42 of them)
[download] Downloading video 1 of 42
[udemy] Downloading login popup
[udemy] 4042786: Downloading webpage
[udemy] 4042786: Downloading lecture JSON
[udemy] 4916230: Downloading m3u8 information
ERROR: An extractor error has occurred. (caused by KeyError('_Request__r_host',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "c:\python27\lib\site-packages\youtube_dl\extractor\common.py", line 503, in extract
ie_result = self._real_extract(url)
File "c:\python27\lib\site-packages\youtube_dl\extractor\udemy.py", line 310, in _real_extract
extract_formats(urls.get('Video'))
File "c:\python27\lib\site-packages\youtube_dl\extractor\udemy.py", line 274, in extract_formats
m3u8_id='hls', fatal=False))
File "c:\python27\lib\site-packages\youtube_dl\extractor\common.py", line 1459, in _extract_m3u8_formats
fatal=fatal)
File "c:\python27\lib\site-packages\youtube_dl\extractor\udemy.py", line 126, in _download_webpage_handle
*args, **compat_kwargs(kwargs))
File "c:\python27\lib\site-packages\youtube_dl\extractor\common.py", line 602, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query)
File "c:\python27\lib\site-packages\youtube_dl\extractor\common.py", line 582, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "c:\python27\lib\site-packages\youtube_dl\YoutubeDL.py", line 2211, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "c:\python27\lib\urllib2.py", line 429, in open
response = self._open(req, data)
File "c:\python27\lib\urllib2.py", line 447, in _open
'_open', req)
File "c:\python27\lib\urllib2.py", line 407, in _call_chain
result = func(*args)
File "c:\python27\lib\site-packages\youtube_dl\utils.py", line 1101, in https_open
req, **kwargs)
File "c:\python27\lib\urllib2.py", line 1195, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "c:\python27\lib\urllib2.py", line 294, in get_selector
return self.__r_host
File "c:\python27\lib\urllib2.py", line 253, in getattr
return self.dict[attr]
KeyError: '_Request__r_host'
Traceback (most recent call last):
File "c:\python27\lib\site-packages\youtube_dl\YoutubeDL.py", line 792, in extract_info
ie_result = ie.extract(url)
File "c:\python27\lib\site-packages\youtube_dl\extractor\common.py", line 516, in extract
raise ExtractorError('An extractor error has occurred.', cause=e)
ExtractorError: An extractor error has occurred. (caused by KeyError('_Request__r_host',)); please report this issue on https://yt-dl.org/bug .
Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.