Skip to content

Commit 2f624ac

Browse files
authored
Merge pull request Shahrayar123#3 from iamzaidsoomro/zaidsoomro
Added youtube searching script
2 parents eae5b44 + 92fb67a commit 2f624ac

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)