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

Downloading codingwithmosh.com shows error [teachable.py] #21910

Closed
rnovino opened this issue Jul 27, 2019 · 3 comments
Closed

Downloading codingwithmosh.com shows error [teachable.py] #21910

rnovino opened this issue Jul 27, 2019 · 3 comments

Comments

@rnovino
Copy link

@rnovino rnovino commented Jul 27, 2019

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2019.07.27
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); 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.

--verbose debug shows

[download] Downloading video 1 of 170 [Teachable] Downloading codewithmosh.com login page [Teachable] Logging in to codewithmosh.com ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); 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. File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage return self._downloader.urlopen(url_or_request) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2227, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "/Users/xxxxx/anaconda3/lib/python3.7/urllib/request.py", line 531, in open response = meth(req, response) File "/Users/xxxxx/anaconda3/lib/python3.7/urllib/request.py", line 641, in http_response 'http', request, response, code, msg, hdrs) File "/Users/xxxxx/anaconda3/lib/python3.7/urllib/request.py", line 569, in error return self._call_chain(*args) File "/Users/xxxxx/anaconda3/lib/python3.7/urllib/request.py", line 503, in _call_chain result = func(*args) File "/Users/xxxxx/anaconda3/lib/python3.7/urllib/request.py", line 649, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp)
$ youtube-dl -u domain@email.com -p mypassword -o '/Volumes/BACKUP/Python/%(title)s.%(ext)s' https://codewithmosh.com/courses/enrolled/423295 --verbose --yes-playlist --playlist-start 1
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'-o', u'/Volumes/BACKUP/Python/%(title)s.%(ext)s', u'https://codewithmosh.com/courses/enrolled/423295', u'--verbose', u'--yes-playlist', u'--playlist-start', u'1']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.07.27
[debug] Python version 2.7.16 (CPython) - Darwin-19.0.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.1.3, ffprobe 4.1.3, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 423295: Requesting header
[redirect] Following redirect to https://codewithmosh.com/p/python-programming-course-developers
[generic] python-programming-course-developers: Requesting header
WARNING: Falling back on generic information extractor.
[generic] python-programming-course-developers: Downloading webpage
[generic] python-programming-course-developers: Extracting information
[TeachableCourse] Downloading codewithmosh.com login page
[TeachableCourse] Logging in to codewithmosh.com
[TeachableCourse] python-programming-course-developers: Downloading webpage
[download] Downloading playlist: Python Programming for Developers
[TeachableCourse] playlist Python Programming for Developers: Collected 170 video ids (downloading 170 of them)
[download] Downloading video 1 of 170
[Teachable] Downloading codewithmosh.com login page
[Teachable] Logging in to codewithmosh.com
ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by HTTPError()); 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.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2227, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Description

Both windows and mac shows the error even adding --force-generic-extractor
only downloads single video if url is in the single page of the course
when downloading the playlist it gets an error

Sample URL with error
https://codewithmosh.com/courses/enrolled/423295
Redirecting to this URL
https://codewithmosh.com/p/python-programming-course-developers

Working URL
https://codewithmosh.com/courses/423295/lectures/6781718

@rnovino rnovino changed the title Downloading codingwithmosh.com shows error Downloading codingwithmosh.com shows error [teachable.py] Jul 27, 2019
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 27, 2019

You must provide account credentials.

@dstftw dstftw closed this Jul 27, 2019
@rnovino
Copy link
Author

@rnovino rnovino commented Jul 27, 2019

This is the exact code I am using but it gets an error.

$ youtube-dl -u MYEMAIL -p MYPASSWORD -o '/Volumes/BACKUP/Python/%(title)s.%(ext)s' https://codewithmosh.com/courses/enrolled/417695 --verbose
@rnovino
Copy link
Author

@rnovino rnovino commented Jul 27, 2019

I have updated the details kindly check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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