-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Support Dailymotion authentication #11491
Comments
I am looking into this, but it seems that the official dailymotion API, which even has a python implementation, will not work in this case. The official API requires an api_secret key for every application that uses its api to perform requests as a user (such as accessing private videos). On the website it specifically says that "Make sure your API secret remains secret though, do not use this kind of authentication for any service that is running on the client if you do not want your API secret to be publicly exposed." This means that it seems the best option would be to somehow simulate logging in by filling the fields, then downloading the video, then destroying the login cookie. |
Yes, and that's usually the only acceptable approach in youtube-dl |
Thanks for your comments! Just to clarify: is this log-in simulation something you plan to implement? Or is it what I should be doing? Side question: wouldn't it be easier to ask the youtube-dl user for an API token? (as it's free and quite easy to generate) Cheers. |
As a programmar, I don't think generating an API token is easy :)
I haven't started the implementation and might not be in the near future. You can go ahead. |
I meant quite easy to generate manually :)
I'm not sure either I can do it in a short term, unfortunately. Where would one add the login code in your project? Is there another clean example one could copy? |
(My personal feeling is that most websites' UI is too awful for users/developers to generate an API token.) Actually the reason not using API tokens is that they're usually limited. For example on Github you can't issue too many API requests a day, but you can refresh webpages as much as you want.
Search "def _login" in youtube-dl |
- extract http formats included in m3u8 manifest - fix user extraction(closes #3553)(closes #21415) - add suport for User Authentication(closes #11491) - fix password protected videos extraction(closes #23176) - respect age limit option and family filter cookie value(closes #18437) - handle video url playlist query param - report alowed countries for geo-restricted videos
- extract http formats included in m3u8 manifest - fix user extraction(closes #3553)(closes #21415) - add suport for User Authentication(closes #11491) - fix password protected videos extraction(closes #23176) - respect age limit option and family filter cookie value(closes #18437) - handle video url playlist query param - report alowed countries for geo-restricted videos
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --version
and ensure your version is 2016.12.18. 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
-v
flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between tripleDescription of your issue, suggested solution and other information
This issue is a follow-up of this one: #11438 (comment)
When a client is downloading several dailymotion videos, the website presents a login page that prevents youtube-dl to work normally.
I tried to workaround the issue using --username ... --password ... but the authentication is not yet supported for this website.
The text was updated successfully, but these errors were encountered: