-
Notifications
You must be signed in to change notification settings - Fork 10k
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
[linkedin:learning] can't download second section #20326
Comments
I have an account on linkedin:learning. So it's not because I'm trying to grab them "for free" it has worked fine in the past. EDITED: But I can confirm what you are saying even tho you supply a login and the script says it's logging in. It will only grab the free videos and not the paid ones. |
an account is needed to check the issue and make a fix for the problem if it's caused by youtube-dl. |
@remitamine I have send you a email. |
I can't even login now.....
|
I'm also getting the same unknown url type: /checkpoint/lg/login-submit when manually providing the authentication credentials and I'm getting the following output when using cookies:
|
It looks like the extractor needs to call the /checkpoint/enterprise/login URL |
I get this when using cookie.txt extension:
|
Even with the new release of youtube-dl I still can't login. How do I get the cookies exported @adiov ? |
@adiov thanks for instruction. I tried like you wrote and have this
|
I am also have this when I try to login without cookies
|
Guys. I am sorry for bothering again. But we are talking here about biggest e-learning website on the Planet. Can we please fix it? |
@adiov like I wrote, I did yoyr instructions with cookie! I got this error
|
I made it with mentioned session.txt extention
|
Could it because I tried to update |
OMG, this cookie.txt format is complete brain dead. Who made this? I still can't make this work
|
having the same issue here, i run the command and get the output
when i use user name and password cmmand i get the below output
|
Exactly. Both methods doesn't work - email:pass & cookie |
@adiov thanks for the reply
after i run the command my cookies.txt file changes to look like the below
|
@adiov is there's a tools to auto-format cookie file to this Netscape thing, by any chance? I can't google anything. I also noticed that after I try to run it with |
same issue here, both using cookies and username/pass. |
Guys, I was able to download using cookies after I uninstalled youtube-dl through pip and installed using pip3. In my machine, pip relates to python 2.7 and |
Yeah, I can't do that Python is such a pain. |
I uninstalled youtube-dl using pip and installed it again using pip3 - and using cookies I could download something. But only the free sections of videos. And I do indeed have premium to watch entire courses. Don't know what to do at this point....
Still get this long error when trying to use username and password (I don't have 2FA on my account) Get this error when a paid video shows up:
|
Hi guys, I just updated to version 2019.04.30 and I got the same problem:
Any update here? |
Digging into the stack trace a little I see that the "unicode object..." error is coming from Cookies.py's def load(self, rawdata):
"""Load cookies from a string (presumably HTTP_COOKIE) or
from a dictionary. Loading cookies from a dictionary 'd'
is equivalent to calling:
map(Cookie.__setitem__, d.keys(), d.values())
"""
if type(rawdata) == type(""):
self.__ParseString(rawdata)
else:
# self.update() wouldn't call our custom __setitem__
for k, v in rawdata.items():
self[k] = v
return
# end load() It expects to be passed either a str ( Technically not youtube-dl's bug, but should be easy enough to code around. Note that the above snippet is from Python 2.7.12 as installed on my Linux machine so not exactly current. |
Do what @tmedicci said. It worked for me. I'm using Mac OS |
Windows version 2019.08.02 no dice using cookies extracted using various tools in Netscape format. Will install Py3 and try it as per @tmedicci's results under Linux |
Happens for me also
|
Still not working with Linkedin Learning paid videos. Verbose Output D:\temp 2>youtube-dl --verbose --cookies cookies.txt https://www.linkedin.com/learning/writing-a-research-paper > error.txt During handling of the above exception, another exception occurred: Traceback (most recent call last): Also D:\temp 2>youtube-dl -wi --cookies cookies.txt https://www.linkedin.com/learning/writing-a-research-paper |
For me changing the authentication from --cookies to -u (without -p) it worked |
As sekmo said above, it works with just the username and password on my side. Haven't tried cookies with LinkedIn learning yet (last time I checked they worked fine with lynda). Currently using the GUI program: youtube-dlg with youtube-dl version 2019.08.13 and here's what the command looks like:
|
Just was forcibly migrated from Lynda.com to LinkedIn learning. Seems now I am having the same issue mentioned above. I have linked together my university account and my personal LinkedIn and can browse and watch all the libraries without issue! I tried downloading: https://www.linkedin.com/learning/fusion-360-essential-training-2/ First video downloads without issue, second video I get the same error as above. I have tried both cookies and regular login. Using 2019.09.12.1 with Python3 on OSX.
|
can confirm and recreate the error @zioalex had with the same error using the same video/course. Downloads up to video 4 and error on video 5. Happens using both login creds and cookies.txt
|
@scgreenhalgh That's weird. It is downloading all of 'em on my side on 2019.09.12.1. Both courses. Here's what the command looks like: and for the other, replace the last parameter with |
Hmm, interesting @hexerus tried the same thing (apart from the external downloader flag) and still getting the same issues! Out of curiosity are you on a paid account or one through a partnering organisation (i.e. a uni or library)? edit: Tried again using the aria2c download library and still no dice!
|
@scgreenhalgh Well, yes, I think at this point the only logical culprit would be account type. I have a yearly premium LinkedIn account that I migrated from Lynda.com. Do you have access to Lynda? If yes, try downloading from there. I remember using a university account there and it downloaded all courses that I needed, flawlessly, using the cookies.txt. |
@hexerus yeah it does seem to point to the account type being the issue which is kind of interesting seeing that it should be pulling from the same pages! Unfortunately they forcefully migrated me over and i can no longer access lynda.com. |
Just curious about those people who are not even afraid of sharing their cookies! 😲 |
Hi, I'm having the same issue as @scgreenhalgh described: my LI Learning access is not from a premium account but rather an "enterprise" one provided by a 3rd party which in my case is my employer. This basically lets me access the LinkedIn Learning via a single sign-on from outside LinkedIn itself (universities, companies, libraries, etc..) which is likely the cause of trouble. I've been investigating the difference between what youtube-dl does now and how a browser behaves with the "enterprise" type of access and I've noticed it is all about just one missing extra header which can be seen through the browser's network inspector: x-li-identity It looks like this is some kind of base64 encoded string containing extra entreprise account information in a format: Anyway, to use this with youtube-dl it is possible to simply specify the header with --add-header flag and use the base64-encoded string retrieved from browser: So far I was not able to figure out where this string actually comes from so if someone has more luck it would be great start for fixing this problem within the code. |
lyon667 already described above the main part, how to get this working again … . In case it’s not clear yet, I wrote a more detailed step by step instruction: My problems were:
My workaround looks like this
The essential part is:
Solution for --cookies error “AttributeError: 'unicode' object has no attribute 'items'”
How to get a valid cookies.txt file
How to get the "x-li-identity” header value
|
I found two sources for the "x-li-identity" value:
|
Hi @martin54 I just wanted to thank you for your detailed explanation. Your problem was the same as mine, and your solution worked for me as well. To add, I am also using SSO (single sign-on) and have my personal LinkedIn account linked to my LinkedIn Learning account that uses SSO. When explicitly using the Thank you again! |
Retry after adding a new cookies.txt file. It worked in my case. |
* https://github.com/ytdl-org/youtube-dl: [youtube] prioritize information from YoutubeIE for playlist entries(closes ytdl-org#28619, closes ytdl-org#28636) [extractor/common] fix _get_cookies method for python 2(ytdl-org#20673, ytdl-org#23256, ytdl-org#20326, closes ytdl-org#28640)
This simple javascript code works for extracting the x-li-identity for me, paste it into the the course page with developer tools console: |
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like this:[x]
)Make sure you are using the latest version: run
youtube-dl --version
and ensure your version is 2019.03.09. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the
-v
flag to your command line you run youtube-dl with (youtube-dl -v <your command line>
), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
The formatting of the
playlist_title
is changed. The same with thetitle
it didn't always give you underscores in the filenames, just spaces. (Photoshop_CC_2018_Essential_Training_-_The_Basics
) But the main issue is that it seems to download the first "section" of the videos just fine. But as soon as the new section begins it spits out this error.The text was updated successfully, but these errors were encountered: