Skip to content

Instantly share code, notes, and snippets.

@DonRichards
Created October 11, 2016 20:05
Show Gist options
  • Save DonRichards/6c3f4d553c2384eca87b6dfc9f5c5826 to your computer and use it in GitHub Desktop.
Save DonRichards/6c3f4d553c2384eca87b6dfc9f5c5826 to your computer and use it in GitHub Desktop.
How to Download Lynda with youtube-dl

How to Download Lynda with youtube-dl with an organization login

Needed:

Cookies Export youtube-dl

  • Install Cookies Export
  • Login to Lynda and navigate to the course you want
  • Cookies export button in browser
  • Copy "cookie.txt" to your desktop
  • Open terminal

For OSX

$ cd ~/Desktop
$ brew install youtube-dl
$ youtube-dl --write-pages --cookies cookie.txt --verbose --limit-rate 4M https://www.lynda.com/Drupal-7-tutorials/Creating-and-Editing-Custom-Themes/86650-2.html --verbose

Login is stored in the cookie.txt file. This has a limited life and will expire. It might leave "dump" files if there is any errors. These can be deleted.

@mahdimohajeri
Copy link

Hi. Is it possible to use some commands so files get sorted? When I download a course, the files are sorted by name, not their order on lynda.com. So it's really hard and I have to sort them myself by renaming and putting numbers in the beginning of their names :(

@melledijkstra
Copy link

melledijkstra commented Aug 12, 2018

@a-eid @mahdimohajeri Maybe you could use some of the variables to get the current download number and put this in front of the filename format.
EDIT: there is a autonumber variable which you could use like so: "%(playlist)s/%(autonumber) %(title)s.%(ext)s"

@Ush1nd1
Copy link

Ush1nd1 commented Jan 28, 2020

Hi, does this method only download one video at a time or can I download the entire subject?

@zikyfranky
Copy link

zikyfranky commented Nov 24, 2020

Hi. Is it possible to use some commands so files get sorted? When I download a course, the files are sorted by name, not their order on lynda.com. So it's really hard and I have to sort them myself by renaming and putting numbers in the beginning of their names :(

youtube-dl https://www.lynda.com/CSS-tutorials/CSS-Essential-Training/5038219-2.html --cookies cookies.txt -o %(chapter_number)s-%(chapter)s/%(playlist_index)s-%(title)s.%(ext)s

This will structure it by sections and playlist index.

@Learnpython-code
Copy link

How can download since video number until the last video number, because the download stop and got winerror 10060 a connection attempt failed because the connected party did not properly respond.

@zikyfranky
Copy link

How can download since video number until the last video number, because the download stop and got winerror 10060 a connection attempt failed because the connected party did not properly respond.

youtube-dl have some flags for this

--playlist-start NUMBER          Playlist video to start at (default is 1)
--playlist-end NUMBER            Playlist video to end at (default is last)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment