The playonyt() function in pywhatkit module is used to play a Youtube video either from a URL or from a keyword. Syntax Example

Read more of this post