DEV Community

Discussion on: How to Download YouTube Videos With Python?

Collapse
 
gozaro profile image
Gozaro

I know that this could be a silly problem, but I get when running the script:
"File "youtube.py", line 4
def download_360p_mp4_videos(url: str, outpath: str = "./"):"

SyntaxError: invalid syntax

Collapse
 
saschalalala profile image
Sascha

What python Version are you using? Typehints were introduced in Python 3.5 iirc so you need at least this version.