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.
youtube-dl doesn't login again for each instance #13252
Comments
ydl_opts = {
'username': '...',
'password': '...',
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download(['BaW_jenozKc'])
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download(['UxxajLWwzqY'])
|
|
I used the same example as yours with https://www.safaribooksonline.com/ and is not working. It is logging only first time. |
I want to download multiple files using youtube-dl from a site the needs login.
The issue that I have is that youtube-dl is login for the first video with no issue, but doesn't login again for next video.
How do I force youtube-dl to login for each video, every time the function is called ?
I use multiple instances, because the function run in a loop and create a new instance each time. Also I tried different names.
Different instances, the first one is working, the next don't login again.Terminal/Output::
Please give a working example. Thank you.