Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[udemy] ERROR: Unable to extract course id #20491

Closed
marekchowaniok opened this issue Mar 27, 2019 · 2 comments
Closed

[udemy] ERROR: Unable to extract course id #20491

marekchowaniok opened this issue Mar 27, 2019 · 2 comments

Comments

@marekchowaniok
Copy link

@marekchowaniok marekchowaniok commented Mar 27, 2019

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.03.18. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2019.03.18

Before submitting an issue make sure you have:

  • [x ] At least skimmed through the README, most notably the FAQ and BUGS sections
  • [x ] Searched the bugtracker for similar issues including closed ones
  • [ x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • [x ] Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

ERROR: Unable to extract course id;

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'-o', u'./%(playlist)s/%(chapter_number)s-%(chapter)s/%(autonumber)03d-%(title)s.%(ext)s', u'https://www.udemy.com/7-scientifically-proven-steps-to-increase-your-influence/learn/lecture/1088308#overview', u'-v']
[debug] Encodings: locale utf-8, fs utf-8, out utf-8, pref utf-8
[debug] youtube-dl version 2019.03.18
[debug] Python version 2.7.10 (CPython) - Darwin-18.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.1.2, ffprobe 4.1.2, rtmpdump 2.4
[debug] Proxy map: {}
[udemy:course] Downloading login popup
[udemy:course] Logging in
[udemy:course] 7-scientifically-proven-steps-to-increase-your-influence: Downloading webpage
ERROR: Unable to extract course id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 794, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 529, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/udemy.py", line 439, in _real_extract
    course_id, title = self._extract_course_info(webpage, course_path)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/udemy.py", line 79, in _extract_course_info
    r'data-course-id=["\'](\d+)', webpage, 'course id')
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1004, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract course id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

@marekchowaniok marekchowaniok changed the title [udemy [udemy] ERROR: Unable to extract course id Mar 27, 2019
@ytdl-org ytdl-org deleted a comment from spark20 Apr 3, 2019
@ytdl-org ytdl-org deleted a comment from spark20 Apr 3, 2019
@ytdl-org ytdl-org deleted a comment from remitamine Apr 3, 2019
@javacake
Copy link

@javacake javacake commented Apr 4, 2019

I receive the same error. I think Udemy has new user interface for new accounts. I have two accounts and the newer account has different UI then what I see in my older account.

@ajaikumarnadarsb
Copy link

@ajaikumarnadarsb ajaikumarnadarsb commented Apr 14, 2019

I'm facing same issue here...

youtube-dl --verbose -u email@domain.com -p pass -o "./%(playlist)s/%(chapter_number)s/%(autonumber)03d-%(title)s.%(ext)s" https://www.udemy.com/complete-python-bootcamp/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'-o', u'./%(playlist)s/%(chapter_number)s/%(autonumber)03d-%(title)s.%(ext)s', u'https://www.udemy.com/complete-python-bootcamp/']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2019.03.09
[debug] Python version 2.7.14 (CPython) - Windows-10-10.0.17763
[debug] exe versions: none
[debug] Proxy map: {}
[udemy:course] Downloading login popup
[udemy:course] Logging in
[udemy:course] complete-python-bootcamp: Downloading webpage
[udemy:course] 567828: Downloading course curriculum
[download] Downloading playlist: 567828
[udemy:course] playlist 567828: Collected 167 video ids (downloading 167 of them)
[download] Downloading video 1 of 167
[udemy] Downloading login popup
[udemy] 3421822: Downloading webpage
ERROR: Unable to extract course id; 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\YoutubeDL.py", line 794, in extract_info
ie_result = ie.extract(url)
File "c:\python27\lib\site-packages\youtube_dl\extractor\common.py", line 522, in extract
ie_result = self._real_extract(url)
File "c:\python27\lib\site-packages\youtube_dl\extractor\udemy.py", line 216, in _real_extract
course_id, _ = self._extract_course_info(webpage, lecture_id)
File "c:\python27\lib\site-packages\youtube_dl\extractor\udemy.py", line 79, in _extract_course_info
r'data-course-id="'', webpage, 'course id')
File "c:\python27\lib\site-packages\youtube_dl\extractor\common.py", line 997, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract course id; 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.

@ytdl-org ytdl-org locked and limited conversation to collaborators Apr 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.