Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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 |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand 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
-vflag 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.