SyntaxFix
Write A Post
Hire A Developer
Questions
If youtube-dl is a terminal program, you can use the subprocess module to access the data you want.
youtube-dl
subprocess
Check out this link for more details: Calling an external command in Python