OPENING WEBSITE USING PYTHON

CODE:

import webbrowser as wb

import pyttsx3


import os 

engine = pyttsx3.init() 

voices = engine.getProperty('voices')


engine.setProperty('voice', voices[1].id) 

engine.runAndWait() 

print("") 

def webbrowser():

 pyttsx3.speak('Hello Welcome to our program')

pyttsx3.speak('PRESS 1 FOR VOOT')

pyttsx3.speak('PRESS 2 FOR HOTSTAR')

pyttsx3.speak('PRESS 3 FOR YOUTUBE')

pyttsx3.speak('PRESS 4 FOR PRIME VIDEO')

pyttsx3.speak('PRESS 5 FOR SONY LIV')'''

    print('''Press 1 for Voot

Press 2 for Hotstar

Press 3 for Youtube

Press 4 for Amazon Prime

Press 5 for sony liv''')

    pyttsx3.speak('ENTER YOUR CHOICE')

    x=int(input('Enter Your choice : '))

    if x==2:

        pyttsx3.speak('OPENING HOTSTAR')

        wb.open("https://www.hotstar.com/in")

    elif x==1:

        pyttsx3.speak('OPENING VOOT')

        wb.open("https://www.voot.com/")

    elif x==3:

       pyttsx3.speak('OPENING YOUTUBE')

        wb.open("https://www.youtube.com/")

    elif x==4:

        pyttsx3.speak('OPENING PRIME VIDEO')

        wb.open("https://www.primevideo.com/ref=av_auth_return_redir")

    elif x==5:

        pyttsx3.speak('OPENING SONYLIV')

        wb.open("https://www.sonyliv.com/")

    else:

        pyttsx3.speak('INCORRECT OPTION')

        pyttsx3.speak('TRY AGAIN')

        webbrowser()

webbrowser()


OUTPUT:




Comments

Followers

Popular posts from this blog

HOSTEL MANAGEMENT SYSTEM BY PYTHON

SCREENSHOT USING PYTHON

Contact form

Name

Email *

Message *