Skip to content

Instantly share code, notes, and snippets.

@javix64
Last active March 22, 2024 15:43
Show Gist options
  • Save javix64/b42d0e2e8811f7dc54b36fcb7ad08e30 to your computer and use it in GitHub Desktop.
Save javix64/b42d0e2e8811f7dc54b36fcb7ad08e30 to your computer and use it in GitHub Desktop.
For downloading not encrypted course from udemy.
#!/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