The web browser.open() function keeps opening youtube page only when the given url is different

53 Views Asked by At
if 'open youtube' or 'youtube' or 'open yt' in data1:
         webbrowser.open('https://www.youtube.com/')
    elif 'twitter' or 'open twitter' in data1:
        webbrowser.open('https://twitter.com/home/')
    elif 'seven' or'play seven' in data1:
        webbrowser.open('https://youtu.be/QU9c0053UAU/')
    elif 'open spotify' or 'spotify' in data1:
        webbrowser.open('https://open.spotify.com/') 

data1 is where the speech to txt module saves the entry

Any solution would be helpful

0

There are 0 best solutions below