-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSearch.py
More file actions
37 lines (31 loc) · 967 Bytes
/
Search.py
File metadata and controls
37 lines (31 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import webbrowser
url1 = 'https://www.google.com/search?q='
url2 = 'https://www.youtube.com/results?search_query='
url3 = 'https://duckduckgo.com/?q='
S = '0'
#variables that we need
print('Made by @Quickplayz on GitHub')
print('----------------------------')
print('Where do you want to search')
print('Type 0 to check out my Github')
print('(1 = Google, 2 = Youtube, 3 = DuckDuckGo)')
print('----------------------------')
S = input()
if S == '0':
webbrowser.open('https://github.com/QuickPlayz')
quit() #github
if S == '1' :
print('What do you want to look up (Google)')
S1 = input()
webbrowser.open("".join([url1, S1 ]))
quit() #google
if S == '2' :
print('What do you want to look up (Youtube)')
S2 = input()
webbrowser.open("".join([url2, S2 ]))
quit() #youtube
if S == '3' :
print('What do you want to look up (DuckDuckGo)')
S3 = input()
webbrowser.open("".join([url3, S3 ]))
quit() #duckduckgo