The time I made youtube-dl just worst because I couldn't understand how it works
It needs chrome and the webdrivers that can be obtained from here: https://sites.google.com/a/chromium.org/chromedriver/downloads Also selenium
(Don't use it, it's just a fun project - at least it works)