search bar python program

Solutions on MaxInterview for search bar python program by the best coders in the world

showing results for - "search bar python program"
Irene
01 Jul 2018
1#Open website
2import os
3import time
4import webbrowser
5import sys
6
7os.system('clear')
8print("Hi i am Like Google but a bit crazy one")
9Name = input("So what should i call you: ")
10print("Hi", Name, "my name is Seainte")
11print("So what would you like to search for topics will be given\nGames\nYoutube\nInternet\nCoding")
12Search = input("Enter your topic here: ")
13
14#Search variable input games Done
15if Search == 'Games' or Search == 'games':
16    os.system('clear')    
17    print("The topics are:\nFlying\nSandbox\nRealistic")
18    Games_Search = input("Enter your topic here: ")
19    if Games_Search == 'Flying' or Games_Search == 'flying':
20        print("Loading...")
21        time.sleep(5)
22        webbrowser.open('https://www.geo-fs.com/geofs.php', True)
23    elif Games_Search == 'Sandbox' or Games_Search == 'sandbox':
24        print("Loading...")
25        time.sleep(5)
26        webbrowser.open('https://www.minecraft.net/en-us/', True)
27    elif Games_Search == 'Realistic' or Games_Search == 'realistic':
28        print("Loading...")
29        time.sleep(5)
30        webbrowser.open('https://mypcgames.net/gta-5-download-for-pc/', True)
31    else:
32        print("Wrong input or topic please enter the correct topic/input next time", Name)
33#Search variable input youtube Done
34elif Search == 'Youtube' or Search == 'youtube':
35    os.system('clear')    
36    print("So the topics are:\nComedy\nGaming\nLearning\nSongs")
37    Youtube_Search = input("Enter your topic: ")
38    if Youtube_Search == 'Comedy' or Youtube_Search == 'comedy':
39        print("Laoding...")
40        time.sleep(5)
41        webbrowser.open('https://www.youtube.com/watch?v=J-zn8PdvZOU&t=16s&ab_channel=ashishchanchlanivines', True)
42    elif Youtube_Search == 'Gaming' or Youtube_Search == 'gaming':
43        print("Loading...")
44        time.sleep(5)
45        webbrowser.open('https://www.youtube.com/gaming', True)
46    elif Youtube_Search == 'Learning' or Youtube_Search == 'learning':
47        print("Loading...")
48        time.sleep('https://www.youtube.com/results?search_query=learning', True)
49    elif Youtube_Search == 'Songs' or Youtube_Search == 'songs':
50        print("Loading...")
51        time.sleep(5)
52        webbrowser.open('https://www.youtube.com/results?search_query=english+songs', True)
53    else:
54        print("Wrong topic please enter the correct topic next time", Name)
55#This is for Search variable Internet input Done
56elif Search == 'Internet' or Search == 'internet':
57    os.system('clear')    
58    print("So the topics are:\nSearch\nLearn\nplay games online\nDownload stuff")
59    Internet_Search = input("Enter your topic: ")
60    if Internet_Search == 'Search' or Internet_Search == 'search':
61        print("Loading...")
62        time.sleep(5)
63        webbrowser.open('https://www.google.com/', True)
64    elif Internet_Search == 'learn' or Internet_Search == 'Learn':
65        print("Loading...")
66        time.sleep(5)
67        webbrowser.open('https://www.youtube.com/watch?v=8I7iboAG4gE&ab_channel=ADSRMusicProductionTutorials', True)
68    elif Internet_Search == 'Play games online' or Internet_Search == 'play games online':
69        print("Loading...")
70        time.sleep(5)
71        webbrowser.open('crazygames.com', True)
72    elif Internet_Search == 'Download stuff' or Internet_Search == 'download stuff':
73        print("Loading...")
74        time.sleep(5)
75        webbrowser.open('https://tlauncher.org/en/', True)
76    else:
77        print("Wrong topic please enter the correct topic next time", Name)
78#This is for Search input from Search variable Done
79elif Search == 'Coding' or Search == 'coding':
80    os.system('clear')    
81    print("So the topics are:\nPython\nC\nC#\nJavascript")
82    Coding_Search = input("Enter your topic: ")
83    if Coding_Search == 'Python' or Coding_Search == 'python':
84        print("Loading...")
85        time.sleep(5)
86        webbrowser.open('https://www.programiz.com/python-programming', True)
87    elif Coding_Search == 'C' or Coding_Search == 'c':
88        print("Loading...")
89        time.sleep(5)
90        webbrowser.open('https://www.programiz.com/c-programming', True)
91    elif Coding_Search == 'C#' or Coding_Search == 'c#':
92        print("Loading...")
93        time.sleep(5)
94        webbrowser('https://www.programiz.com/csharp-programming', True)
95    elif Coding_Search == 'Javascript' or Coding_Search == 'javascript':
96        print("Loading...")
97        time.sleep(5)
98        webbrowser.open('https://www.programiz.com/javascript', True)
99    else:
100        print("Wrong topic please enter the correct topic next time", Name)     
similar questions
queries leading to this page
search bar python program