'Why do I get this error when I try to download this course from Udemy: Unable to download webpage, HTTP Error 403?
Solution 1:[1]
403 means you are not allowed to do this operation. I assume this is an anti-piracy measure.
Solution 2:[2]
TESTED AND WORKS ON A MAC OS
- Install youtube-dl through
brew install youtube-dl. If you used curl, you can remove it throughrm -rf /usr/local/bin/youtube-dl. - If you face symlink permissions ERRORS, run
sudo chown -R $(whoami) $(brew --prefix)/*thenbrew doctorand fix each error according to the instructions. brew cleanupbrew link youtube-dlcd .(navigate to your favorable location that you wish to put your videos folder)- Login to udemy and get site cookies text file. I used Get Cookies.txt.
mkdir MyVideos. (name it as you wish)youtube-dl --cookies udemy.com_cookies.txt -o '~/MyVideos/%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s' https://www.udemy.com/<course-name>- Done! ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Gwamaka Charles |

