Skip to content

Instantly share code, notes, and snippets.

@KaushikShresth07
Created June 12, 2021 13:28
Show Gist options
  • Save KaushikShresth07/5f6d7174b965c148dba14c20a136963f to your computer and use it in GitHub Desktop.
Save KaushikShresth07/5f6d7174b965c148dba14c20a136963f to your computer and use it in GitHub Desktop.
import pywhatkit
import webbrowser
def YouTubeDirectSearch(Title):
pywhatkit.playonyt(Title)
def YouTubeSearch(Title):
hhtp = "https://www.youtube.com/results?search_query=" + str(Title)
webbrowser.open(hhtp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment