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

Does youtube-dl support corporate authentication on Lynda.com? #15158

Closed
prodigy6630 opened this issue Jan 2, 2018 · 7 comments
Closed

Does youtube-dl support corporate authentication on Lynda.com? #15158

prodigy6630 opened this issue Jan 2, 2018 · 7 comments

Comments

@prodigy6630
Copy link

@prodigy6630 prodigy6630 commented Jan 2, 2018

I'm struggling to download from Lynda.com using corporate login. I used cookie.txt Chrome extension to bypass login parameters for the command below but it only downloads to the 4 free videos.

youtube-dl --cookies cookies.txt "https://www.lynda.com/vSphere-tutorials/VMware-vSphere-Certified-Professional-vSphere-6-Cert-Prep-2V0-621-Basics/583671-2.html" -o "%(playlist)s [Lynda.com]/%(chapter_number)s - %(chapter)s/%(playlist_index)s - %(title)s.%(ext)s"

[lynda:course] 583671: Downloading course JSON
WARNING: 16 videos are only available for members (or paid members) and will not be downloaded. Use --username and --password options to provide lynda.com account credentials.
[download] Downloading playlist: VMware vSphere Certified Professional on vSphere 6 Cert Prep (2V0-621): The Basics
[lynda:course] playlist VMware vSphere Certified Professional on vSphere 6 CertPrep (2V0-621): The Basics: Collected 4 video ids (downloading 4 of them)
[download] Downloading video 1 of 4
[lynda] 628407: Downloading video JSON
[lynda] 628407: Checking 1-540 video format URL
[lynda] 628407: Checking 1-720 video format URL
[lynda] 628407: Checking 1-360 video format URL
[lynda] 628407: Checking 0-540 video format URL
[lynda] 628407: Checking 0-720 video format URL
[lynda] 628407: Checking 0-360 video format URL
[download] Destination: VMware vSphere Certified Professional on vSphere 6 CertPrep (2V0-621) - The Basics [Lynda.com]\1 - Introduction\1 - Welcome.mp4
[download] 100% of 4.96MiB in 00:03
[download] Downloading video 2 of 4
[lynda] 628408: Downloading video JSON
[lynda] 628408: Checking 1-540 video format URL
[lynda] 628408: Checking 1-720 video format URL
[lynda] 628408: Checking 1-360 video format URL
[lynda] 628408: Checking 0-540 video format URL
[lynda] 628408: Checking 0-720 video format URL
[lynda] 628408: Checking 0-360 video format URL
[download] Destination: VMware vSphere Certified Professional on vSphere 6 CertPrep (2V0-621) - The Basics [Lynda.com]\1 - Introduction\2 - Before we begin.mp4
[download] 100% of 7.05MiB in 00:07
[download] Downloading video 3 of 4
[lynda] 628411: Downloading video JSON
[lynda] 628411: Checking 1-540 video format URL
[lynda] 628411: Checking 1-720 video format URL
[lynda] 628411: Checking 1-360 video format URL
[lynda] 628411: Checking 0-540 video format URL
[lynda] 628411: Checking 0-720 video format URL
[lynda] 628411: Checking 0-360 video format URL
[download] Destination: VMware vSphere Certified Professional on vSphere 6 CertPrep (2V0-621) - The Basics [Lynda.com]\2 - 1. Exam Details\3 - Exam blueprint.mp4
[download] 100% of 8.23MiB in 00:05
[download] Downloading video 4 of 4
[lynda] 628417: Downloading video JSON
[lynda] 628417: Checking 1-540 video format URL
[lynda] 628417: Checking 1-720 video format URL
[lynda] 628417: Checking 1-360 video format URL
[lynda] 628417: Checking 0-540 video format URL
[lynda] 628417: Checking 0-720 video format URL
[lynda] 628417: Checking 0-360 video format URL
[download] Destination: VMware vSphere Certified Professional on vSphere 6 CertPrep (2V0-621) - The Basics [Lynda.com]\3 - 2. The Exam Blueprint\4 - VMware vSphere - Configure and manage networking.mp4
[download] 100% of 6.52MiB in 00:04
[download] Finished downloading playlist: VMware vSphere Certified Professionalon vSphere 6 Cert Prep (2V0-621): The Basics

@PsychotycGoat
Copy link

@PsychotycGoat PsychotycGoat commented Jan 3, 2018

I use the chrome extension cookies.txt, extension ID njabckikapfpffapmjgojcnbfjonfjfg , and it works perfectly. I think you need to update your cookie about every 24h, but might be longer.

@prodigy6630
Copy link
Author

@prodigy6630 prodigy6630 commented Jan 3, 2018

I tried it on a different machine as well, so I doubt it has to do with a stale cookie.

@PsychotycGoat
Copy link

@PsychotycGoat PsychotycGoat commented Jan 3, 2018

Maybe the cookie isn't in the expected format? What is your process to get the cookies.txt file?

@prodigy6630
Copy link
Author

@prodigy6630 prodigy6630 commented Jan 3, 2018

I click on the Export cookies.txt extension and click "cookies for this tab click here" to download the cookies.txt. This is saved into the same folder youtube-dl is in.

# HTTP Cookie File for lynda.com by Genuinous @genuinous.
# To download cookies for this tab click here, or download all cookies.
# Usage Examples:
# 1) wget -x --load-cookies cookies.txt "https://www.lynda.com/vSphere-tutorials/Welcome/583671/628407-4.html?srchtrk=index%3a1%0alinktypeid%3a2%0aq%3aVMware+vSphere+Certified+Professional+on+vSphere+6+Cert+Prep+(2V0-621)%3a+The+Basics%0apage%3a1%0as%3arelevance%0asa%3atrue%0aproducttypeid%3a2"
# 2) curl --cookie cookies.txt "https://www.lynda.com/vSphere-tutorials/Welcome/583671/628407-4.html?srchtrk=index%3a1%0alinktypeid%3a2%0aq%3aVMware+vSphere+Certified+Professional+on+vSphere+6+Cert+Prep+(2V0-621)%3a+The+Basics%0apage%3a1%0as%3arelevance%0asa%3atrue%0aproducttypeid%3a2"
# 3) aria2c --load-cookies cookies.txt "https://www.lynda.com/vSphere-tutorials/Welcome/583671/628407-4.html?srchtrk=index%3a1%0alinktypeid%3a2%0aq%3aVMware+vSphere+Certified+Professional+on+vSphere+6+Cert+Prep+(2V0-621)%3a+The+Basics%0apage%3a1%0as%3arelevance%0asa%3atrue%0aproducttypeid%3a2"
#

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 3, 2018

You should use "all cookies".

@prodigy6630
Copy link
Author

@prodigy6630 prodigy6630 commented Jan 4, 2018

Thanks, just what I needed. It's working now with "all cookies'. Much appreciated.

@dstftw dstftw closed this Jan 4, 2018
@blueray453
Copy link

@blueray453 blueray453 commented Jul 27, 2018

https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg

cookies for this tab works fine

just make sure you are on logged in lynda.com tab

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

Successfully merging a pull request may close this issue.

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