We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eae5b44 + 92fb67a commit 2f624acCopy full SHA for 2f624ac
Youtube Searching Script/youtubeSearch.py
@@ -0,0 +1,12 @@
1
+import pywhatkit as pwk # You need to install this using pip install pywhatkit
2
+def main(): # main function for taking input and using pywhatkit builtin function
3
+ videoName = input("Search: ")
4
+ pwk.playonyt(videoName)
5
+
6
+# calling of main function in exception handling block
7
+try:
8
+ main()
9
+except:
10
+ print("An unexpected error occurred")
11
+finally:
12
+ print("Script closed")
0 commit comments