Last active
March 22, 2024 15:43
-
-
Save javix64/b42d0e2e8811f7dc54b36fcb7ad08e30 to your computer and use it in GitHub Desktop.
For downloading not encrypted course from udemy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z "$1" ] | |
then | |
echo "Write the url in this format: https://www.udemy.com/course/X | |
Where X is the name of the course that you want to download" | |
fi | |
yt-dlp \ | |
--legacy-server-connect | |
--sleep-requests 60 \ | |
--user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0' \ | |
--cookies-from-browser firefox \ | |
-P . -o "%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s-%(title)s.%(ext)s" $1 \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment