I'm trying to call a cmd command using the python script. but it has no effect.
import os
os.system('--youtube-dl')
I'm trying to call a cmd command using the python script. but it has no effect.
import os
os.system('--youtube-dl')
You can use the subprocess module to do all that kind of stuff I've included a small example below
from subprocess import call
call(['youtube-dl', 'https://www.youtube.com/watch?v=PT2_F-1esPk'])
You are calling the exectuable --youtube-dl which probably not exists.
If --youtube-dl is a command you can type in from the cmd prompt, you should try subprocess.check_output(['--youtube-dl', some_url], shell=True) then the cmd.exe (at least on Windows) will get invoked.